210件ヒット
[1-100件を表示]
(0.125秒)
クラス
-
Enumerator
:: ArithmeticSequence (21) -
RDoc
:: Options (12) -
Rake
:: FileList (48) - Range (105)
モジュール
-
Rake
:: Cloneable (24)
キーワード
- == (19)
-
clear
_ exclude (12) - clone (12)
- cover? (19)
- dup (12)
- end (12)
- eql? (12)
- exclude= (12)
-
exclude
_ end? (19) -
excluded
_ from _ list? (12) - hash (19)
- last (24)
- overlap? (2)
- resolve (12)
検索結果
先頭5件
-
Rake
:: FileList # exclude(*patterns) {|entry| . . . } -> self (21304.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']... -
Rake
:: FileList # clear _ exclude -> self (12214.0) -
登録されている除外リストをクリアします。
...[][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
//}... -
Rake
:: FileList # excluded _ from _ list?(file _ name) -> bool (9207.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
# exclude _ end? -> bool (9114.0) -
範囲オブジェクトが終端を含まないとき真を返します。
...範囲オブジェクトが終端を含まないとき真を返します。
//emlist[例][ruby]{
(1..5).exclude_end? # => false
(1...5).exclude_end? # => true
//}... -
Enumerator
:: ArithmeticSequence # exclude _ end? -> bool (9102.0) -
末項(終端)を含まないとき真を返します。
末項(終端)を含まないとき真を返します。 -
RDoc
:: Options # exclude=(val) (6218.0) -
コマンドライン引数の --exclude オプションと同様の指定を行います。
...コマンドライン引数の --exclude オプションと同様の指定を行います。
@param val 設定するパターンを Regexp オブジェクトで指定します。... -
Range
# hash -> Integer (6117.0) -
始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
...始端と終端のハッシュ値と Range#exclude_end? の値からハッシュ値を計算して整数として返します。
//emlist[例][ruby]{
p (1..2).hash # => 5646
p (1...2).hash # => 16782863
//}... -
Range
# overlap?(range) -> bool (6113.0) -
self と range に重なりがある場合は true を、そうでない場合は false を返します。
...self と range に重なりがある場合は true を、そうでない場合は false を返します。
@param range self と重なりがあるかどうかを調べたい Range オブジェクトを指定します。
@raise TypeError 引数に Range でないオブジェクトを指定した......。
@see Range#cover?
//emlist[例][ruby]{
(0..2).overlap?(1..3) #=> true
(0..2).overlap?(3..4) #=> false
(0..).overlap?(..0) #=> true
(0..).overlap?(...0) #=> false
//}
self の端点と range の端点が比較可能でない(<=> メソッドが nil を返す)場合、false を返し....../emlist[比較可能でない例][ruby]{
(1..3).overlap?('a'..'d') #=> false
//}
self または range が空である場合、false を返します。
ここで、Range が空であるとは、
* 始端が終端より大きい
* Range#exclude_end? が true であり、始端と終端が等し... -
Enumerator
:: ArithmeticSequence # hash -> Integer (6107.0) -
自身のハッシュ値を返します。
...自身のハッシュ値を返します。
begin, end, step, exclude_end? が等しい Enumerable::ArithmeticSequence は
同じハッシュ値を返します。... -
Range
# last(n) -> [object] (6107.0) -
最後の n 要素を返します。範囲内に要素が含まれない場合は空の配列を返します。
...れない場合は空の配列を返します。
@param n 取得する要素数を整数で指定します。整数以外のオブジェクトを指定
した場合は to_int メソッドによる暗黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型......raise ArgumentError n に負の数を指定した場合に発生します。
[注意] 引数を省略して実行した場合は、終端を含むかどうか
(Range#exclude_end? の戻り値)に関わらず終端の要素を返す事に注意し
てください。
//emlist[例][ruby]{
(10..20).la......st(3) # => [18, 19, 20]
(10...20).last(3) # => [17, 18, 19]
//}
@see Range#first...