るりまサーチ

最速Rubyリファレンスマニュアル検索!
372件ヒット [301-372件を表示] (0.047秒)

別のキーワード

  1. net/imap param
  2. win32ole win32ole_param
  3. bodytypebasic param
  4. win32ole_param name
  5. bodytypetext param

検索結果

<< < ... 2 3 4 >>

Rake::FileList#egrep(pattern) {|filename, count, line| ... } (31.0)

与えられたパターンをファイルリストから grep のように検索します。

...した行を出力します。

@param pattern 正規表現を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("sample1", "line1\nline2\nline3\n")
IO.write("sample2", "line1\nline2\nline3\nline4\n")

task
default: :test_rake_app
task
:test_rake_app do

file_list...
...file_list.egrep(/line/) # => 7

file_list.egrep(/.*/) do |filename, count, line|
"filename = #{filename}, count = #{count}, line = #{line}"
end

end


# => "filename = sample1, count = 1, line = line1\n"
# => "filename = sample1, count = 2, line = line2\n"
# => "filename = sample1, count = 3,...

Rake::Application#tty_output=(tty_output_state) (25.0)

TTY に対する出力状態を上書きします。

...します。

大抵の場合、テストのために使用します。

@param tty_output_state 変更後の状態を指定します

//emlist[][ruby]{
# Rakefile での記載例とする

task
default: :test_rake_app
task
:test_rake_app do
Rake.application.tty_output? # => false...
...Rake.application.tty_output = "debug output" # => "debug output"
Rake.application.tty_output? # => "debug output"
end

//}...

Rake::FileList#==(array) -> bool (25.0)

自身を配列に変換してから与えられた配列と比較します。

...列と比較します。

@param array 比較対象の配列を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

task
default: :test_rake_app
task
:test_rake_app do
file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')
file_list == file_list.to_a # => true
end

//}...

Rake::FileList#excluded_from_list?(file_name) -> bool (25.0)

与えられたファイル名が除外される場合は、真を返します。 そうでない場合は偽を返します。

...そうでない場合は偽を返します。

@param file_name ファイル名を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task
default: :test_rake_app
task
:test_rake_app do
file_list = FileList.new("tes...
...t1.rb", "test2.rb")
file_list.exclude("test1.rb")
file_list.excluded_from_list?("test1.rb") # => true
file_list.excluded_from_list?("test2.rb") # => false
end

//}...

Rake::FileList#import(array) -> self (25.0)

与えられた配列を自身にインポートします。

...列を自身にインポートします。

@param array ファイル名のリストを指定します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task
default: :test_rake_app
task
:test_rake_app do
file_list = FileList.new(...
..."test1.rb", "test2.rb", "test3.rb")
file_list.import(["test4.rb", "test5.rb"]) # => ["test4.rb", "test5.rb", "test1.rb", "test2.rb", "test3.rb"]
file_list # => ["test4.rb", "test5.rb", "test1.rb", "test2.rb", "test3.rb"]
end

//}...

絞り込み条件を変える

Kernel#desc(description) -> String (19.0)

直後の Rake タスクの説明を登録します。

...直後の Rake タスクの説明を登録します。

@param description 直後のタスクの説明を指定します。

例:
desc "Run the Unit Tests"
task
:test => [:build] do
runtests
end
...
<< < ... 2 3 4 >>