るりまサーチ

最速Rubyリファレンスマニュアル検索!
594件ヒット [1-100件を表示] (0.108秒)

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. matrix d
  4. rsa d
  5. rsa d=

検索結果

<< 1 2 3 ... > >>

IRB::OutputMethod#print(*objs) (21102.0)

NotImplementedError が発生します。

...NotImplementedError が発生します。

@param objs 任意のオブジェクトを指定します。

@raise NotImplementedError 必ず発生します。...

IRB::StdioOutputMethod#print(*objs) -> nil (21102.0)

引数を標準出力に出力します。

引数を標準出力に出力します。

@param objs 任意のオブジェクトを指定します。

RDoc::Stats#print -> () (21102.0)

自身の持つ情報を標準出力に表示します。

自身の持つ情報を標準出力に表示します。

Gem::Commands::DependencyCommand#print_dependencies(spec, level = 0) -> String (15302.0)

依存関係を表す文字列を返します。

依存関係を表す文字列を返します。

@param spec Gem::Specification のインスタンスを指定します。

@param level 依存関係の深さを指定します。

IRB::OutputMethod#printn(*objs) -> nil (9101.0)

各 obj を self に出力し、最後に改行を出力します。

各 obj を self に出力し、最後に改行を出力します。

@param objs 任意のオブジェクトを指定します。

絞り込み条件を変える

PrettyPrint#indent -> Integer (9101.0)

現在のインデントの深さを返します。

現在のインデントの深さを返します。

PrettyPrint#maxwidth -> Integer (9101.0)

自身の幅を返します。

自身の幅を返します。

Module#instance_method(name) -> UnboundMethod (6143.0)

self のインスタンスメソッド name をオブジェクト化した UnboundMethod を返します。

...ndMethod を返します。

@param name メソッド名を Symbol または String で指定します。

@raise NameError self に存在しないメソッドを指定した場合に発生します。

@see Module#public_instance_method, Object#method

//emlist[例][ruby]{
class Interpreter
d
ef d...
...o_a() print "there, "; end
d
ef do_d() print "Hello "; end
d
ef do_e() print "!\n"; end
d
ef do_v() print "Dave"; end
D
ispatcher = {
"a" => instance_method(:do_a),
"d" => instance_method(:do_d),
"e" => instance_method(:do_e),
"v" => instance_method(:do_v)
}
d
ef inter...
...pret(string)
string.each_char {|b| Dispatcher[b].bind(self).call }
end
end

interpreter = Interpreter.new
interpreter.interpret('dave')
# => Hello there, Dave!
//}...

ARGF.class#inplace_mode -> String | nil (6119.0)

c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡 張子を返します。拡張子が設定されていない場合は空文字列を返します。イン プレースモードでない場合は nil を返します。

...や ARGF.class#inplace_mode= で設定します。

例:
# $ echo "test" > test.txt
# $ ruby -i.bak test.rb test.txt
# $ cat test.txt # => "TEST"
# $ cat test.txt.bak # => "test"

# test.rb
ARGF.inplace_mode # => ".bak"
ARGF.each_line {|e|print e.upcase} # => "TEST"...
...例:
# $ echo "test" > test.txt
# $ ruby test.rb test.txt
# $ cat test.txt # => "test"

# test.rb
ARGF.inplace_mode # => nil
ARGF.each_line {|e|print e.upcase} # => "TEST"

@see d:spec/rubycmd#cmd_option, ARGF.class#inplace_mode=...
<< 1 2 3 ... > >>