278件ヒット
[101-200件を表示]
(0.122秒)
ライブラリ
- ビルトイン (77)
- csv (11)
-
minitest
/ spec (1) -
minitest
/ unit (2) - rss (132)
- rubygems (11)
- strscan (44)
クラス
-
ARGF
. class (33) - CSV (11)
-
MiniTest
:: Unit (1) - Module (1)
-
RSS
:: Maker :: ChannelBase (22) -
RSS
:: Maker :: ChannelBase :: SkipDaysBase (11) -
RSS
:: Maker :: ChannelBase :: SkipDaysBase :: DayBase (22) -
RSS
:: Maker :: ChannelBase :: SkipHoursBase (11) -
RSS
:: Maker :: ChannelBase :: SkipHoursBase :: HourBase (22) -
RSS
:: Rss :: Channel (44) - StringScanner (44)
-
Thread
:: Backtrace :: Location (44)
モジュール
- Kernel (11)
-
MiniTest
:: Assertions (1)
キーワード
-
absolute
_ path (11) -
base
_ label (11) - content (22)
- content= (22)
- filename (11)
- gem (11)
-
infect
_ with _ assertions (1) - inspect (11)
-
new
_ day (11) -
new
_ hour (11) - path (11)
- puke (1)
-
scan
_ full (11) -
search
_ full (11) - skipDays (22)
- skipDays= (11)
- skipHours (22)
- skipHours= (11)
-
skip
_ blanks? (11) -
skip
_ until (11) -
to
_ s (11)
検索結果
先頭5件
-
RSS
:: Rss :: Channel # skipHours= (9101.0) -
@todo
@todo -
StringScanner
# scan _ full(regexp , s , f) -> object (6113.0) -
スキャンポインタの位置から regexp と文字列のマッチを試します。
...* s が false ならばスキャンポインタを進めません。
* f が true ならばマッチした部分文字列を返します。
* f が false ならばマッチした部分文字列の長さを返します。
マッチに失敗すると s や f に関係なく nil を返し......なります。
* scan_full(regexp, true, true) は StringScanner#scan と同等。
* scan_full(regexp, true, false) は StringScanner#skip と同等。
* scan_full(regexp, false, true) は StringScanner#check と同等。
* scan_full(regexp, false, false) は StringScanner#match?......インタを進めます。
false ならばスキャンポインタを進めません。
@param f true ならばマッチした部分文字列を返します。
false ならばマッチした部分文字列の長さを返します。
//emlist[例][ruby]{
require 'strscan'
s = St... -
StringScanner
# search _ full(regexp , s , f) -> object (6113.0) -
regexp で指定された正規表現とマッチするまで文字列をスキャンします。
...ンポインタを進めます。
* s が false ならばスキャンポインタを進めません。
* f が true ならばスキャン開始位置からマッチした部分の末尾までの部分文字列を返します。
* f が false ならばスキャン開始位置からマッ......く nil を返します。
このメソッドは s と f の組み合わせにより、
他のメソッドと同等の動作になります。
* search_full(regexp, true, true) は StringScanner#scan_until と同等。
* search_full(regexp, true, false) は StringScanner#skip_until と同......_full(regexp, false, true) は StringScanner#check_until と同等。
* search_full(regexp, false, false) は StringScanner#exist? と同等。
@param regexp マッチに用いる正規表現を指定します。
@param s true ならばスキャンポインタを進めます。
false... -
Thread
:: Backtrace :: Location # absolute _ path -> String (6113.0) -
self が表すフレームの絶対パスを返します。
...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/to/foo.rb
//}
@see Thread::Backtrace::Location#path... -
Thread
:: Backtrace :: Location # base _ label -> String (6113.0) -
self が表すフレームの基本ラベルを返します。通常、 Thread::Backtrace::Location#label から修飾を取り除いたもので構成 されます。
...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::Backtrace::Location#label... -
ARGF
. class # filename -> String (6107.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"... -
RSS
:: Maker :: ChannelBase :: SkipDaysBase # new _ day (6001.0) -
@todo 新しくdayを作成し,返します.作成された dayはdayリストの最後 に追加されています.
@todo
新しくdayを作成し,返します.作成された
dayはdayリストの最後
に追加されています. -
RSS
:: Maker :: ChannelBase :: SkipDaysBase :: DayBase # content (6001.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: SkipDaysBase :: DayBase # content=() (6001.0) -
@todo
@todo -
RSS
:: Maker :: ChannelBase :: SkipHoursBase # new _ hour (6001.0) -
@todo
@todo
新しくhourを作成し,返します.作成された
hourはhourリストの最後
に追加されています.