377件ヒット
[301-377件を表示]
(0.070秒)
ライブラリ
- ビルトイン (84)
- csv (12)
-
minitest
/ spec (1) -
minitest
/ unit (4) - rss (216)
- rubygems (12)
- strscan (48)
クラス
-
ARGF
. class (36) - CSV (12)
-
MiniTest
:: Unit (3) - Module (1)
-
RSS
:: Maker :: ChannelBase (24) -
RSS
:: Maker :: ChannelBase :: SkipDaysBase (12) -
RSS
:: Maker :: ChannelBase :: SkipDaysBase :: DayBase (24) -
RSS
:: Maker :: ChannelBase :: SkipHoursBase (12) -
RSS
:: Maker :: ChannelBase :: SkipHoursBase :: HourBase (24) -
RSS
:: Rss :: Channel (48) -
RSS
:: Rss :: SkipDays (36) -
RSS
:: Rss :: SkipHours (36) - StringScanner (48)
-
Thread
:: Backtrace :: Location (48)
モジュール
- Kernel (12)
-
MiniTest
:: Assertions (1)
キーワード
-
absolute
_ path (12) -
base
_ label (12) - content (24)
- content= (24)
- day (12)
- day= (12)
- days (12)
- filename (12)
- gem (12)
- hour (12)
- hour= (12)
- hours (12)
-
infect
_ with _ assertions (1) - inspect (12)
-
new
_ day (12) -
new
_ hour (12) - path (12)
- puke (1)
-
scan
_ full (12) -
search
_ full (12) - skipDays (24)
- skipDays= (12)
- skipHours (24)
- skipHours= (12)
-
skip
_ blanks? (12) -
skip
_ until (12) - skips (1)
- skips= (1)
-
to
_ s (12)
検索結果
先頭5件
-
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" の
いずれかの頭文字を返します。...