るりまサーチ

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

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

ライブラリ

検索結果

<< 1 2 3 ... > >>

RubyVM::InstructionSequence.load_from_binary_extra_data(binary) -> String (29106.0)

バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。

...列から埋め込まれたextra_dataを取り出します。

//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
Ruby
VM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}

@see RubyVM::InstructionSequence#to...

RubyVM::InstructionSequence#to_binary(extra_data = nil) -> String (23112.0)

バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

...て返します。
Ruby
VM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。

引数の extra_data はバイナリデータと共に保存されます。
Ruby
VM::InstructionSequence.load_from_binary_extra_data メソッ...
...ません。他のバージョンや他のアーキテクチャのRubyで作られたバイナリデータは使用できません。

//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("extra_data")

# ※表示の都合上改行しているが実際は改...
...0\x00numE\x7F\x00\x00\x02\x00\x00\x00\x00
# \x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00+\xA0\x01\x00\x00\xAC\x01\x00
# \x00\xCA\x01\x00\x00\xD6\x01\x00\x00\xED\x01\x00\x00extra_data"
//}

@see RubyVM::InstructionSequence.load_from_binary
@see RubyVM::InstructionSequence.load_from_binary_extra_data...

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (18235.0)

各要素に String#ext を適用した新しい Rake::FileList を返します。

...各要素に String#ext を適用した新しい Rake::FileList を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb"...
..., "test3.rb")
file_list.ext(".erb") # => ["test1.erb", "test2.erb", "test3.erb"]
end
//}

@see String#ext...

rubygems/ext/ext_conf_builder (18000.0)

extconf.rb を元にして拡張ライブラリをビルドするためのクラスを扱うライブラリです。

...extconf.rb を元にして拡張ライブラリをビルドするためのクラスを扱うライブラリです。...

rubygems/ext (12000.0)

拡張ライブラリをビルドするためのライブラリです。

拡張ライブラリをビルドするためのライブラリです。

絞り込み条件を変える

rubygems/ext/builder (12000.0)

拡張ライブラリをビルドするためのクラスを扱うライブラリです。

拡張ライブラリをビルドするためのクラスを扱うライブラリです。

rubygems/ext/configure_builder (12000.0)

configure スクリプトを元に拡張ライブラリをビルドするクラスを扱うライブラリです。

configure スクリプトを元に拡張ライブラリをビルドするクラスを扱うライブラリです。

rubygems/ext/rake_builder (12000.0)

Rake を使用して拡張ライブラリをビルドするためのクラスを扱うライブラリです。

Rake を使用して拡張ライブラリをビルドするためのクラスを扱うライブラリです。

REXML::Element#each_element_with_text(text = nil, max = 0, name = nil) {|element| ... } -> () (6206.0)

テキストを子ノードとして 持つすべての子要素を引数としてブロックを呼び出します。

...テキストを子ノードとして
持つすべての子要素を引数としてブロックを呼び出します。

text を指定すると、テキストの内容が text であるもののみを対象とします。
maxを指定すると、対象となる子要素の先頭 max 個のみが対...
...

@param text テキストの中身(文字列)
@param max ブロック呼出の対象とする子要素の最大個数
@param name xpath文字列

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a><b>b</b><c>b</c><d>d</d><e/></a>'
doc.root.each_element_with_text {|e|p e}
#...
...>> <b> ... </>
# >> <c> ... </>
# >> <d> ... </>
doc.root.each_element_with_text('b'){|e|p e}
# >> <b> ... </>
# >> <c> ... </>
doc.root.each_element_with_text('b', 1){|e|p e}
# >> <b> ... </>
doc.root.each_element_with_text(nil, 0, 'd'){|e|p e}
# >> <d> ... </>
//}...
<< 1 2 3 ... > >>