1044件ヒット
[1-100件を表示]
(0.107秒)
ライブラリ
- ビルトイン (667)
- abbrev (12)
- csv (3)
- date (4)
- expect (24)
-
irb
/ cmd / help (12) - mkmf (24)
- pathname (64)
- rake (108)
-
rake
/ testtask (36) -
rdoc
/ markup (12) -
rinda
/ rinda (12) -
rinda
/ tuplespace (12) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (24) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- Array (99)
-
CSV
:: Row (3) - Data (6)
- Date (2)
- DateTime (2)
-
Enumerator
:: Lazy (80) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (24) - IO (24)
-
IRB
:: ExtendCommand :: Help (12) - MatchData (6)
- Pathname (64)
-
RDoc
:: Markup (12) -
Rake
:: Application (12) -
Rake
:: FileList (72) -
Rake
:: TestTask (36) -
Rinda
:: TupleSpace (12) -
Rinda
:: TupleSpaceProxy (12) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - String (282)
- Struct (24)
- Time (2)
モジュール
- Enumerable (192)
- FileUtils (12)
- Kernel (24)
キーワード
- abbrev (12)
-
add
_ special (12) - all? (45)
- any? (48)
- byteindex (3)
- byterindex (3)
- captures (2)
- deconstruct (11)
-
deconstruct
_ keys (20) - egrep (12)
-
egrep
_ cpp (24) - exclude (12)
- execute (12)
- expect (24)
- fnmatch (12)
- fnmatch? (12)
- glob (34)
- grep (36)
-
grep
_ v (34) - gsub (60)
- gsub! (60)
- index (12)
- none? (45)
- notify (24)
- one? (45)
-
pathmap
_ replace (12) - pattern= (12)
- rindex (12)
- scan (24)
- search (24)
-
search
_ with _ source (12) - sh (12)
-
slice
_ after (46) -
slice
_ before (60) - sub (72)
- sub! (48)
-
test
_ files= (12) -
to
_ a (6) - tr (12)
- tr! (12)
-
tr
_ s (12) -
tr
_ s! (12) - values (6)
検索結果
先頭5件
-
Rake
:: TestTask # pattern -> String (24202.0) -
テストファイルにマッチする glob パターンを返します。
テストファイルにマッチする glob パターンを返します。
デフォルトは 'test/test*.rb' です。 -
Rake
:: TestTask # pattern=(pattern) (12403.0) -
テストファイルにマッチする glob パターンを指定します。
テストファイルにマッチする glob パターンを指定します。 -
Pathname
# fnmatch(pattern , *args) -> bool (9324.0) -
File.fnmatch(pattern, self.to_s, *args) と同じです。
...le.fnmatch(pattern, self.to_s, *args) と同じです。
@param pattern パターンを文字列で指定します。ワイルドカードとして `*', `?', `[]' が使用できま
す。Dir.glob とは違って `{}' や `**/' は使用できません。
@param args File.fnmatch......を参照してください。
//emlist[例][ruby]{
require "pathname"
path = Pathname("testfile")
path.fnmatch("test*") # => true
path.fnmatch("TEST*") # => false
path.fnmatch("TEST*", File::FNM_CASEFOLD) # => true
//}
@see File.fnmatch... -
Pathname
# fnmatch?(pattern , *args) -> bool (9324.0) -
File.fnmatch?(pattern, self.to_s, *args) と同じです。
...le.fnmatch?(pattern, self.to_s, *args) と同じです。
@param pattern パターンを文字列で指定します。ワイルドカードとして `*', `?', `[]' が使用できま
す。Dir.glob とは違って `{}' や `**/' は使用できません。
@param args File.fnmatch......を参照してください。
@see File.fnmatch?... -
MatchData
# captures -> [String] (9125.0) -
$1, $2, ... を格納した配列を返します。
...す。
MatchData#to_a と異なり $& を要素に含みません。
グループにマッチした部分文字列がなければ対応する要素は nil になります。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.to_a # => ["foobar", "foo", "bar", nil]
p $~.captures #......=> ["foo", "bar", nil]
//}
@see MatchData#to_a, MatchData#named_captures, d:spec/pattern_matching#matching_non_primitive_objects... -
Gem
:: SourceInfoCache # search _ with _ source(pattern , only _ platform = false , all = false) -> Array (6308.0) -
与えられた条件を満たす Gem::Specification と URL のリストを返します。
...cation と URL のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param only_platform 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。
@para......m all 真を指定するとキャッシュを更新してから検索を実行します。
@return 第一要素を Gem::Specification、第二要素を取得元の URL とする配列を要素とする配列を返します。... -
String
# pathmap _ replace(patterns) { . . . } -> String (6301.0) -
与えられたパスを前もって置き換えます。
...与えられたパスを前もって置き換えます。
@param patterns 'pat1,rep1;pat2,rep2;...' のような形式で置換パターンを指定します。... -
String
# scan(pattern) {|s| . . . } -> self (6245.0) -
pattern がマッチした部分文字列をブロックに渡して実行します。 pattern が正規表現で括弧を含む場合は、 括弧で括られたパターンにマッチした文字列の配列を渡します。
...
pattern がマッチした部分文字列をブロックに渡して実行します。
pattern が正規表現で括弧を含む場合は、
括弧で括られたパターンにマッチした文字列の配列を渡します。
@param pattern 探索する部分文字列または正規表現
//em......list[例][ruby]{
"foobarbazfoobarbaz".scan(/ba./) {|s| p s }
# "bar"
# "baz"
# "bar"
# "baz"
"foobarbazfoobarbaz".scan("ba") {|s| p s }
# "ba"
# "ba"
# "ba"
# "ba"
"foobarbazfoobarbaz".scan(/(ba)(.)/) {|s| p s }
# ["ba", "r"]
# ["ba", "z"]
# ["ba", "r"]
# ["ba", "z"]
//}... -
RDoc
:: Markup # add _ special(pattern , name) -> () (6242.0) -
pattern で指定した正規表現にマッチする文字列をフォーマットの対象にしま す。
...
pattern で指定した正規表現にマッチする文字列をフォーマットの対象にしま
す。
例えば WikiWord のような、SM::SimpleMarkup#add_word_pair、
SM::SimpleMarkup#add_html でフォーマットできないものに対して使用
します。
@param pattern 正規......。
@param name SM::ToHtml などのフォーマッタに識別させる時の名前を
Symbol で指定します。
例:
require 'rdoc/markup/simple_markup'
require 'rdoc/markup/simple_markup/to_html'
class WikiHtml < SM::ToHtml
def handle_special_WIKIWORD(special)
"......ont color=red>" + special.text + "</font>"
end
end
m = SM::SimpleMarkup.new
m.add_special(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)
h = WikiHtml.new
puts m.convert(input_string, h)
変換時に実際にフォーマットを行うには SM::ToHtml#accept_special_<name で指定した名... -
String
# scan(pattern) -> [String] | [[String]] (6240.0) -
self に対して pattern を繰り返しマッチし、 マッチした部分文字列の配列を返します。
...lf に対して pattern を繰り返しマッチし、
マッチした部分文字列の配列を返します。
pattern が正規表現で括弧を含む場合は、
括弧で括られたパターンにマッチした部分文字列の配列の配列を返します。
@param pattern 探索する......obar".scan(/../) # => ["fo", "ob", "ar"]
p "foobar".scan("o") # => ["o", "o"]
p "foobarbazfoobarbaz".scan(/ba./) # => ["bar", "baz", "bar", "baz"]
p "foobar".scan(/(.)/) # => [["f"], ["o"], ["o"], ["b"], ["a"], ["r"]]
p "foobarbazfoobarbaz".scan(/(ba)(.)/) # => [["ba"......, "r"], ["ba", "z"], ["ba", "r"], ["ba", "z"]]
//}...