536件ヒット
[1-100件を表示]
(0.027秒)
別のキーワード
クラス
-
ARGF
. class (48) - CGI (12)
-
RubyVM
:: InstructionSequence (12) -
Zlib
:: GzipReader (12)
モジュール
-
GC
:: Profiler (24) - Kernel (144)
- Process (12)
キーワード
-
$ ARGV (12) -
$ DEFAULT _ INPUT (12) -
$ INPUT _ LINE _ NUMBER (12) -
$ LAST _ PAREN _ MATCH (12) -
$ LAST _ READ _ LINE (12) -
$ NR (12) -
$ OFS (12) -
$ ORS (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - CSV (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 1 . 0 (4) - Proc (12)
- RegexpError (12)
- Ruby用語集 (12)
- bigdecimal (12)
- eof (12)
- eof? (12)
- exec (12)
- gets (12)
-
irb
/ completion (12) - optparse (12)
- print (12)
- profile (6)
- rdoc (12)
- readbyte (12)
- readchar (12)
- readline (24)
- report (12)
- result (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
rubygems
/ security (12) -
test
/ unit (1) - クラス/メソッドの定義 (12)
- パターンマッチ (12)
- 変数と定数 (5)
- 手続きオブジェクトの挙動の詳細 (12)
検索結果
先頭5件
-
Kernel
$ $ OFS -> String | nil (24208.0) -
$, の別名
...
$, の別名
require "English"
array = %w|hoge fuga ugo bar foo|
p array.join #=> "hogefugaugobarfoo"
$OUTPUT_FIELD_SEPARATOR = ","
p array.join #=> "hoge,fuga,ugo,bar,foo"... -
Kernel
$ $ OUTPUT _ FIELD _ SEPARATOR -> String | nil (21108.0) -
$, の別名
...
$, の別名
require "English"
array = %w|hoge fuga ugo bar foo|
p array.join #=> "hogefugaugobarfoo"
$OUTPUT_FIELD_SEPARATOR = ","
p array.join #=> "hoge,fuga,ugo,bar,foo"... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (18143.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <RubyVM::InstructionSequence:block in irb_binding@(irb)>
# method
> def foo(bar); puts bar; end
> RubyVM::InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>
例2: Ruby......orld"
end
$a_global_proc = proc { str = 'a' + 'b' }
# irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_p... -
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (18120.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
$ $ NR -> Integer (18120.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 (18114.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 (18114.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
$ $ ARGV -> [String] (18113.0) -
$* の別名
...
$* の別名
require "English"
p $ARGV
# end of sample.rb
ruby sample.rb 31 /home/hoge/fuga.txt
#=> ["31", "/home/hoge/fuga.txt"]... -
Kernel
$ $ DEFAULT _ INPUT -> IO (18113.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"
......
