るりまサーチ

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

別のキーワード

  1. csv skip_blanks?
  2. strscan skip
  3. _builtin skip
  4. argf.class skip
  5. stringscanner skip

検索結果

<< < ... 2 3 4 >>

StringScanner#search_full(regexp, s, f) -> object (13.0)

regexp で指定された正規表現とマッチするまで文字列をスキャンします。

...ます。

* search_full(regexp, true, true) は StringScanner#scan_until と同等。
* search_full(regexp, true, false) は StringScanner#skip_until と同等。
* search_full(regexp, false, true) は StringScanner#check_until と同等。
* search_full(regexp, false, false) は St...
...tringScanner.new('test string')
p s.search_full(/t/, true, true) #=> "t"
p s.search_full(/str/, false, true) #=> "est str"
p s.search_full(/string/, true, true) #=> "est string"
//}


@see StringScanner#scan_until StringScanner#skip_until StringScanner#check_until StringScanner#exist?...

Thread::Backtrace::Location#absolute_path -> String (13.0)

self が表すフレームの絶対パスを返します。

...レームの絶対パスを返します。

//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end

Foo.new(0..2).locations.map do |call|
puts call.absolute_path
end

# => /path/to/foo.rb
# /path/to/foo.rb
# /path...

Thread::Backtrace::Location#base_label -> String (13.0)

self が表すフレームの基本ラベルを返します。通常、 Thread::Backtrace::Location#label から修飾を取り除いたもので構成 されます。

...除いたもので構成
されます。

//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end

Foo.new(0..2).locations.map do |call|
puts call.base_label
end

# => initialize
# new
# <main>
//}

@see Thread::Ba...

Thread::Backtrace::Location#inspect -> String (13.0)

Thread::Backtrace::Location#to_s の結果を人間が読みやすいような文 字列に変換したオブジェクトを返します。

...したオブジェクトを返します。

//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end

Foo.new(0..2).locations.map do |call|
puts call.inspect
end

# => "path/to/foo.rb:5:in `initialize'"
# "path/to/f...

Thread::Backtrace::Location#to_s -> String (13.0)

self が表すフレームを Kernel.#caller と同じ表現にした文字列を返し ます。

...現にした文字列を返し
ます。

//emlist[例][ruby]{
# foo.rb
class Foo
attr_accessor :locations
def initialize(skip)
@locations = caller_locations(skip)
end
end

Foo.new(0..2).locations.map do |call|
puts call.to_s
end

# => path/to/foo.rb:5:in `initialize'
# path/to/foo.rb:9:...

絞り込み条件を変える

ARGF.class#filename -> String (7.0)

現在開いている処理対象のファイル名を返します。

...は - を返します。
組み込み変数 $FILENAME と同じです。

$ echo "foo" > foo
$ echo "bar" > bar
$ echo "glark" > glark

$ ruby argf.rb foo bar glark

ARGF.filename # => "foo"
ARGF.read(5) # => "foo\nb"
ARGF.filename # => "bar"
ARGF.skip
ARGF.filename # => "glark"...

ARGF.class#path -> String (7.0)

現在開いている処理対象のファイル名を返します。

...は - を返します。
組み込み変数 $FILENAME と同じです。

$ echo "foo" > foo
$ echo "bar" > bar
$ echo "glark" > glark

$ ruby argf.rb foo bar glark

ARGF.filename # => "foo"
ARGF.read(5) # => "foo\nb"
ARGF.filename # => "bar"
ARGF.skip
ARGF.filename # => "glark"...

MiniTest::Unit#puke(klass, method_name, exception) -> String (7.0)

テストメソッドの実行結果が成功以外の場合に、その種類と理由を記録します。

...ストクラスを指定します。

@param method_name テストメソッドの名前を指定します。

@param exception 例外クラスを指定します。

@return 与えられた例外クラスによって "Skip", "Failure", "Error" の
いずれかの頭文字を返します。...
<< < ... 2 3 4 >>