るりまサーチ

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

別のキーワード

  1. matrix tr
  2. string tr
  3. string tr!
  4. string tr_s
  5. string tr_s!

キーワード

検索結果

<< 1 2 3 ... > >>

Zlib::ZStream#end -> nil (18102.0)

ストリームを閉じます。 以後、このストリームにアクセスすることはできなくなります。

ストリームを閉じます。
以後、このストリームにアクセスすることはできなくなります。

Psych::Handler#end_stream -> () (12202.0)

YAML stream の終端を見付けたときに呼び出されます。

...YAML stream の終端を見付けたときに呼び出されます。

必要に応じてこのメソッドを override してください。...

String#prepend(other_str) -> String (9301.0)

文字列 other_str を先頭に破壊的に追加します。

...文字列 other_str を先頭に破壊的に追加します。

@param other_str 追加したい文字列を指定します。

//emlist[例][ruby]{
a = "world"
a.prepend("hello ") # => "hello world"
a # => "hello world"
//}...

String#end_with?(*strs) -> bool (9220.0)

self の末尾が strs のいずれかであるとき true を返します。

...strs のいずれかであるとき true を返します。

@param strs パターンを表す文字列 (のリスト)

//emlist[例][ruby]{
"string".end_with?("ing") # => true
"string".end_with?("str") # => false
"string".end_with?("str", "ing") # => true
//}

@see String#st...
...art_with?
@see String#delete_suffix, String#delete_suffix!...

TracePoint#instruction_sequence -> RubyVM::InstructionSequence (9213.0)

script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。

...イルされた
RubyVM::InstructionSequenceインスタンスを返します。

//emlist[例][ruby]{
Tr
acePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end
.enable do
eval("puts 'hello'")
end

//}

@raise RuntimeError :sc...

絞り込み条件を変える

REXML::Attributes#each_attribute {|attribute| ... } -> () (9207.0)

各属性に対しブロックを呼び出します。

...各属性に対しブロックを呼び出します。

個々の属性は REXML::Attribute オブジェクトで渡されます。

//emlist[][ruby]{
require 'rexml/document'

doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a fo...
...o:att='1' bar:att='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end

# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}...

Zlib::ZStream#stream_end? -> bool (9202.0)

ストリームへの入力が終了している時に真を返します。

ストリームへの入力が終了している時に真を返します。

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

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

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

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

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

String#prepend(*arguments) -> String (9201.0)

複数の文字列を先頭に破壊的に追加します。

...列を先頭に破壊的に追加します。

@param arguments 追加したい文字列を指定します。

//emlist[例][ruby]{
a = "!!!"
a.prepend # => "!!!"
a # => "!!!"

a = "!!!"
a.prepend "hello ", "world" # => "hello world!!!"
a # => "hello world!!!"
//}...
<< 1 2 3 ... > >>