198件ヒット
[1-100件を表示]
(0.174秒)
クラス
-
Enumerator
:: ArithmeticSequence (21) -
RDoc
:: Options (24) -
Rake
:: FileList (24) - Range (105)
モジュール
-
Rake
:: Cloneable (24)
検索結果
先頭5件
-
RDoc
:: Options # exclude -> Regexp (21118.0) -
コマンドライン引数の --exclude オプションで指定した正規表現を返します。 複数指定していた場合は、1 つの Regexp オブジェクトにまとめられた ものを返します。
...コマンドライン引数の --exclude オプションで指定した正規表現を返します。
複数指定していた場合は、1 つの Regexp オブジェクトにまとめられた
ものを返します。... -
Rake
:: FileList # exclude(*patterns) {|entry| . . . } -> self (18226.0) -
自身から取り除くべきファイル名のパターンを自身の除外リストに登録します。
...例:
FileList['a.c', 'b.c'].exclude("a.c") # => ['b.c']
FileList['a.c', 'b.c'].exclude(/^a/) # => ['b.c']
# If "a.c" is a file, then ...
FileList['a.c', 'b.c'].exclude("a.*") # => ['b.c']
# If "a.c" is not a file, then ...
FileList['a.c', 'b.c'].exclude("a.*") # => ['a.c', 'b.c']... -
Range
# exclude _ end? -> bool (12214.0) -
範囲オブジェクトが終端を含まないとき真を返します。
...範囲オブジェクトが終端を含まないとき真を返します。
//emlist[例][ruby]{
(1..5).exclude_end? # => false
(1...5).exclude_end? # => true
//}... -
Enumerator
:: ArithmeticSequence # exclude _ end? -> bool (12202.0) -
末項(終端)を含まないとき真を返します。
末項(終端)を含まないとき真を返します。 -
RDoc
:: Options # exclude=(val) (9118.0) -
コマンドライン引数の --exclude オプションと同様の指定を行います。
...コマンドライン引数の --exclude オプションと同様の指定を行います。
@param val 設定するパターンを Regexp オブジェクトで指定します。... -
Rake
:: Cloneable # clone -> object (9107.0) -
自身を複製します。
...ています。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
file_list = FileList['a.c', 'b.c']
clone = file_list.clone
clone # => ["a.c", "b.c"]
clone.exclude("a.c")
clone == file_list # => false
end
//}... -
Rake
:: FileList # excluded _ from _ list?(file _ name) -> bool (6207.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("test1.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
//}... -
Range
# end -> object (6106.0) -
終端の要素を返します。範囲オブジェクトが終端を含むかどうかは関係ありま せん。
...終端の要素を返します。範囲オブジェクトが終端を含むかどうかは関係ありま
せん。
//emlist[例][ruby]{
(10..20).last # => 20
(10...20).last # => 20
//}
@see Range#begin... -
Range
# last(n) -> [object] (3136.0) -
最後の n 要素を返します。範囲内に要素が含まれない場合は空の配列を返します。
...最後の n 要素を返します。範囲内に要素が含まれない場合は空の配列を返します。
@param n 取得する要素数を整数で指定します。整数以外のオブジェクトを指定
した場合は to_int メソッドによる暗黙の型変換を試みま......指定した場合に発生します。
@raise ArgumentError n に負の数を指定した場合に発生します。
[注意] 引数を省略して実行した場合は、終端を含むかどうか
(Range#exclude_end? の戻り値)に関わらず終端の要素を返す事に注意......し
てください。
//emlist[例][ruby]{
(10..20).last(3) # => [18, 19, 20]
(10...20).last(3) # => [17, 18, 19]
//}
@see Range#first...