44件ヒット
[1-44件を表示]
(0.184秒)
クラス
-
Rake
:: FileList (11) - StringScanner (22)
モジュール
-
Rake
:: TaskManager (11)
キーワード
-
clear
_ exclude (11) - terminate (11)
検索結果
先頭4件
-
Rake
:: TaskManager # clear (21132.0) -
全てのタスクとルールをクリアします。
...します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.tasks # => [<Rake::Task default => [test_rake_app]>, <Rake::Task test_rake_app => []>]
Rake.application.clear # => []
Rake.application.tasks # => []
end
//}... -
StringScanner
# clear -> self (21132.0) -
スキャンポインタを文字列末尾後まで進め、マッチ記録を捨てます。
...ます。
@return self を返します。
pos = self.string.size と同じ動作です。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.scan(/\w+/) # => "test"
s.matched # => "test"
s.pos # => 4
s[0] # => "test"
s.terminate
s.matched # =>......nil
s[0] # => nil
s.pos # => 11
//}
StringScanner#clear は将来のバージョンで削除される予定です。
代わりに StringScanner#terminate を使ってください。... -
StringScanner
# terminate -> self (12232.0) -
スキャンポインタを文字列末尾後まで進め、マッチ記録を捨てます。
...ます。
@return self を返します。
pos = self.string.size と同じ動作です。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.scan(/\w+/) # => "test"
s.matched # => "test"
s.pos # => 4
s[0] # => "test"
s.terminate
s.matched # =>......nil
s[0] # => nil
s.pos # => 11
//}
StringScanner#clear は将来のバージョンで削除される予定です。
代わりに StringScanner#terminate を使ってください。... -
Rake
:: FileList # clear _ exclude -> self (9156.0) -
登録されている除外リストをクリアします。
...t[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test.rb", "test.bak")
file_list.exclude("test.rb")
# DEFAULT_IGNORE_PATTERNS と "test.rb" の双方の除外がクリアされる
file_list.clear_exclude
file_list......# => ["test.rb", "test.bak"]
end
//}...