1422件ヒット
[1-100件を表示]
(0.134秒)
ライブラリ
- ビルトイン (796)
- abbrev (24)
- csv (6)
- date (4)
- expect (24)
-
irb
/ cmd / help (12) - mkmf (24)
- pathname (88)
- rake (144)
-
rake
/ testtask (36) -
rdoc
/ markup (12) -
rinda
/ rinda (12) -
rinda
/ tuplespace (12) -
ripper
/ lexer (24) - rubygems (12)
-
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (24) - shell (6)
-
shell
/ builtin-command (6) -
shell
/ command-processor (6) -
shell
/ filter (6) - shellwords (24)
クラス
- Array (84)
-
CSV
:: Row (6) - Data (6)
- Date (2)
- DateTime (2)
- Dir (36)
- Enumerator (6)
-
Enumerator
:: Lazy (80) - File (24)
-
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (24) - IO (24)
-
IRB
:: ExtendCommand :: Help (12) - MatchData (6)
- Pathname (88)
-
RDoc
:: Markup (12) -
Rake
:: Application (12) -
Rake
:: FileList (96) -
Rake
:: TestTask (36) - Regexp (12)
-
Rinda
:: TupleSpace (12) -
Rinda
:: TupleSpaceProxy (12) - Ripper (24)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
Shell
:: Glob (6) - String (282)
- Struct (24)
- Time (2)
モジュール
- Abbrev (12)
- Enumerable (192)
- FileUtils (12)
- Gem (12)
- Kernel (84)
- Rake (12)
- Shellwords (24)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
DEFAULT
_ IGNORE _ PATTERNS (12) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - NoMatchingPatternError (6)
-
WIN
_ PATTERNS (12) - [] (12)
- abbrev (24)
-
add
_ special (12) - all? (38)
- any? (40)
- application= (12)
- byteindex (3)
- byterindex (3)
- captures (2)
- deconstruct (14)
-
deconstruct
_ keys (20) - egrep (12)
-
egrep
_ cpp (24) - exclude (12)
- execute (12)
- expect (24)
- fnmatch (24)
- fnmatch? (24)
- glob (82)
- grep (36)
-
grep
_ v (34) - gsub (96)
- gsub! (60)
- index (12)
- irb (12)
- new (18)
- none? (45)
- notify (24)
- one? (45)
-
pathmap
_ replace (12) - pattern= (12)
- produce (6)
- rake (12)
- rindex (12)
-
ruby 1
. 8 . 4 feature (12) - scan (24)
- search (24)
-
search
_ with _ source (12) - sh (12)
- shellescape (12)
- shelljoin (12)
- slice (12)
-
slice
_ after (46) -
slice
_ before (60) - sub (96)
- sub! (48)
-
test
/ unit (1) -
test
_ files= (12) -
to
_ a (6) -
token
_ match (12) - tr (12)
- tr! (12)
-
tr
_ s (12) -
tr
_ s! (12) - union (12)
- values (6)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
- パターンマッチ (12)
- 制御構造 (12)
- 正規表現 (12)
検索結果
先頭5件
-
Rake
:: TestTask # pattern -> String (24201.0) -
テストファイルにマッチする glob パターンを返します。
...テストファイルにマッチする glob パターンを返します。
デフォルトは 'test/test*.rb' です。... -
NoMatchingPatternError (18000.0)
-
パターンマッチでどの条件にも一致せず、else節もない場合に発生します。
...パターンマッチでどの条件にも一致せず、else節もない場合に発生します。... -
Rake
:: TestTask # pattern=(pattern) (12402.0) -
テストファイルにマッチする glob パターンを指定します。
テストファイルにマッチする glob パターンを指定します。 -
Gem
:: WIN _ PATTERNS -> Array (12200.0) -
Windows 上で動いている Ruby を識別するための正規表現の配列。
Windows 上で動いている Ruby を識別するための正規表現の配列。 -
Rake
:: FileList :: DEFAULT _ IGNORE _ PATTERNS -> Array (12200.0) -
デフォルトで除外するパターンのリストです。
デフォルトで除外するパターンのリストです。 -
Abbrev
. # abbrev(words , pattern = nil) -> Hash (9207.0) -
文字列の配列から一意に決まる短縮形を計算し、 短縮形をキー、元の文字列を値とするハッシュを返します。
...ram pattern Regexp か String を指定します。
@return 短縮形をキー、元の文字列を値とするハッシュを返します。
require 'abbrev'
# words に同じ文字列が含まれている場合は
# 以下のようにその文字列しか返しません。
pp Abbrev.a......bbrev(%w[ruby ruby]).sort
# => [["ruby", "ruby"]]
# 空白が含まれていても適切に処理します。
pp Abbrev.abbrev(['ru by']).sort
# => [["r", "ru by"],
# ["ru", "ru by"],
# ["ru ", "ru by"],
# ["ru b", "ru by"],
# ["ru by", "ru......by"]]
# sort していない例
p %w[ruby rubyist].abbrev
#=> {"ruby" => "ruby",
# "rubyi" => "rubyist",
# "rubyis" => "rubyist",
# "rubyist" => "rubyist"}... -
Rake
:: TestTask # test _ files=(list) (9206.0) -
明示的にテスト対象のファイルを指定します。
...示的にテスト対象のファイルを指定します。
Rake::TestTask#pattern=, Rake::TestTask#test_files= の
両方でテスト対象を指定した場合、両者は一つにまとめて使用されます。
@param list 配列か Rake::FileList のインスタンスを指定します。... -
IRB
:: ExtendCommand :: Help # execute(*names) -> nil (9112.0) -
RI から Ruby のドキュメントを参照します。
...RI から Ruby のドキュメントを参照します。
irb(main):001:0> help String#match
...
@param names 参照したいクラス名やメソッド名などを文字列で指定します。
names を指定しなかった場合は、RI を対話的なモードで起動します。メソ......(main):001:0> help
Enter the method name you want to look up.
You can use tab to autocomplete.
Enter a blank line to exit.
>> String#match
String#match
(from ruby core)
------------------------------------------------------------------------------
str.match(pattern) -> ma......tchdata or nil
str.match(pattern, pos) -> matchdata or nil
...... -
Shellwords
. # shellescape(str) -> String (9112.0) -
文字列を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
...を Bourne シェルのコマンドライン中で安全に使えるようにエスケープします。
@param str エスケープの対象となる文字列を指定します。
@return エスケープされた文字列を返します。
例:
require 'shellwords'
pattern = 'Jan 15'......puts "grep #{Shellwords.shellescape(pattern)} file"
# => grep Jan\ 15 file...