るりまサーチ

最速Rubyリファレンスマニュアル検索!
66件ヒット [1-66件を表示] (0.091秒)
トップページ > クエリ:self[x] > クエリ:t[x] > クエリ:exclude[x]

別のキーワード

  1. object yield_self
  2. _builtin yield_self
  3. _builtin self
  4. tracepoint self
  5. codeobject document_self

ライブラリ

クラス

キーワード

検索結果

Rake::FileList#exclude(*patterns) {|entry| ... } -> self (21326.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....

Rake::FileList#clear_exclude -> self (9214.0)

登録されている除外リストをクリアします。

...t[][ruby]{
# Rakefile での記載例とする

t
ask default: :test_rake_app
t
ask :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.new(*patterns) {|self| ... } (3207.0)

与えられたパターンをもとにして自身を初期化します。

...いる場合は、自身をブロックパラメータとしてブロックを評価します。

@param patterns パターンを指定します。

例:
file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')

pkg_files = FileList.new('lib/**/*') do |fl|
fl.exclude(/\bCVS\b/)
end...

Rake::FileList#resolve -> self (3107.0)

追加リストと除外リストを評価します。

...mlist[][ruby]{
# Rakefile での記載例とする

IO.write("test.rb", "test")
IO.write("test.java", "test")
IO.write("test.js", "test")

t
ask default: :test_rake_app
t
ask :test_rake_app do
file_list = FileList.new("*.rb")
file_list.include("*.java")
file_list.exclude("*.js")
file_list.res...
...olve # => ["test.rb", "test.java"]
end
//}...

ruby 1.8.2 feature (3018.0)

ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。

...ruby 1.8.2 feature
ruby 1.8.2 での ruby 1.8.1 からの変更点です。

掲載方針

*バグ修正の影響も含めて動作が変わるものを収録する。
*単にバグを直しただけのものは収録しない。
*ライブラリへの単なる定数の追加は収録しない。...
...: String#issjis
: String#isutf8

=== 2004-11-18
: StringIO.new [lib] [compat]
StringIO.newの第二引数にIO.newと同様、Fixnum も指定できるようになりました。
((<ruby-dev:24896>))

=== 2004-11-16
: Test::Unit::AutoRunner.options [lib] [compat]
add new option --exclude (-...
...new option --ssl

=== 2004-06-16

: object.c [ruby] [bug]
特異クラスが特異オブジェクトのクラスを継承していると見なされて
いるバグを修正しました。((<ruby-dev:23690>))

$ ruby1.8.1 -e 'class X;end; x=X.new; class << x;p self < X; end'
t
rue...

絞り込み条件を変える

Range.new(first, last, exclude_end = false) -> Range (325.0)

first から last までの範囲オブジェクトを生成して返しま す。

...first から last までの範囲オブジェクトを生成して返しま
す。

exclude
_end が真ならば終端を含まない範囲オブジェクトを生
成します。exclude_end 省略時には終端を含みます。

@param first 最初のオブジェクト
@param last 最後のオブ...
...ram exclude_end 真をセットした場合終端を含まない範囲オブジェクトを生成します

@raise ArgumentError first <=> last が nil の場合に発生します

//emlist[例: 整数の範囲オブジェクトの場合][ruby]{
Range.new(1, 10) # => 1..10
Range.new(1, 10, tru...
...uts ip}
# => 192.0.2.1
# 192.0.2.2
# 192.0.2.3
//}

//emlist[例: 自作のオブジェクトの場合][ruby]{
MyInteger = Struct.new(:value) do
def succ
self
.class.new(value + 1)
end

def <=>(other)
value <=> other.value
end

def to_s
value.to_s
end
end
Range.new(MyInt...