ライブラリ
- English (108)
- ビルトイン (142)
- csv (12)
- drb (12)
- fileutils (12)
- pathname (36)
- rake (120)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (192)
クラス
- Array (48)
- NameError (10)
- Object (12)
- Pathname (36)
- Proc (12)
-
Rake
:: Application (12) -
Rake
:: FileList (12) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (12) -
Rake
:: PackageTask (192) - Random (36)
モジュール
- FileUtils (12)
- Kernel (120)
- ObjectSpace (12)
-
Rake
:: TaskManager (36) - RakeFileUtils (48)
キーワード
-
$ ARGV (12) -
$ DEFAULT _ INPUT (12) -
$ ERROR _ INFO (12) -
$ ERROR _ POSITION (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ LAST _ PAREN _ MATCH (12) -
$ NR (12) -
$ ORS (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - CSV (12)
- DRbProtocol (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) - abort (12)
-
add
_ loader (12) -
bigdecimal
/ ludcmp (12) -
bigdecimal
/ newton (12) - binding (12)
-
cgi
/ session (12) -
cp
_ r (12) - delete (12)
- egrep (12)
- find (12)
-
in
_ namespace (12) - intern (12)
- irb (12)
- load (12)
- logger (12)
- name (12)
- name= (12)
-
need
_ tar (12) -
need
_ tar= (12) -
need
_ tar _ bz2 (12) -
need
_ tar _ bz2= (12) -
need
_ tar _ gz (12) -
need
_ tar _ gz= (12) -
need
_ zip (12) -
need
_ zip= (12) - new (24)
-
nowrite
_ flag (12) -
nowrite
_ flag= (12) - optparse (12)
-
package
_ dir (12) -
package
_ dir= (12) -
package
_ dir _ path (12) -
package
_ files (12) -
package
_ files= (12) - profile (6)
- rand (36)
- receiver (10)
-
respond
_ to _ missing? (12) -
rinda
/ rinda (12) - rss (12)
-
ruby 1
. 8 . 4 feature (12) - split (12)
-
synthesize
_ file _ task (12) -
undefine
_ finalizer (12) - unlink (12)
-
verbose
_ flag (12) -
verbose
_ flag= (12) - xmlrpc (3)
検索結果
先頭5件
-
Kernel
$ $ DEFAULT _ INPUT -> IO (12.0) -
$< の別名
...$< の別名
require "English"
while line = $DEFAULT_INPUT.gets
p line
end
# end of sample.rb
ruby sample.rb < /etc/passwd
# => "hoge:x:500:501::/home/hoge:/bin/bash\n"
...... -
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (12.0) -
$. の別名
...$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5... -
Kernel
$ $ LAST _ PAREN _ MATCH -> String | nil (12.0) -
$+ の別名
...while line = DATA.gets
[ r1, r2 ].each {|rep|
rep =~ line
p $+
}
end
__END__
<tr> <td><img src=http://localhost/a.jpg></td> <td>ikkou</td> <td><a href=http://localhost/link.html>link</a></td> </tr>
#enf of sample.rb
$ ruby sample.rb
"http://localhost/a.jpg"
"link"... -
Kernel
$ $ NR -> Integer (12.0) -
$. の別名
...$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5... -
Kernel
$ $ ORS -> String | nil (12.0) -
$\ の別名
...$\ の別名
require "English"
print "hoge\nhuga\n"
$OUTPUT_RECORD_SEPARATOR = "\n"
print "fuge"
print "ugo"
# end of sample.rb
ruby sample.rb
hoge
huga
fuge
ugo... -
Kernel
$ $ OUTPUT _ RECORD _ SEPARATOR -> String | nil (12.0) -
$\ の別名
...$\ の別名
require "English"
print "hoge\nhuga\n"
$OUTPUT_RECORD_SEPARATOR = "\n"
print "fuge"
print "ugo"
# end of sample.rb
ruby sample.rb
hoge
huga
fuge
ugo... -
Pathname
# split -> Array (12.0) -
File.split(self.to_s) と同じです。
...File.split(self.to_s) と同じです。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.split # => [#<Pathname:/path/to>, #<Pathname:sample>]
//}
@see File.split... -
Proc
# binding -> Binding (12.0) -
Proc オブジェクトが保持するコンテキストを Binding オブジェクトで返します。
...Proc オブジェクトが保持するコンテキストを
Binding オブジェクトで返します。
//emlist[例][ruby]{
def fred(param)
proc {}
end
sample_proc = fred(99)
eval("param", sample_proc.binding) # => 99
//}... -
Rake
:: NameSpace . new(task _ manager , scope _ list) (12.0) -
自身を初期化します。
...@param scope_list 名前空間のリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
name_space = Rake::NameSpace.new(Rake.application, Rake::Scope.new("sample"))
name_space.scope # => LL("sample")
end
//}...