8件ヒット
[1-8件を表示]
(0.144秒)
ライブラリ
- ビルトイン (1)
- erb (2)
-
fiddle
/ import (1) -
irb
/ frame (1) -
rubygems
/ specification (1) - socket (1)
- tracer (1)
クラス
- ERB (2)
-
Gem
:: Specification (1) -
IRB
:: Frame (1) - Module (1)
- Tracer (1)
- UDPSocket (1)
モジュール
-
Fiddle
:: Importer (1)
キーワード
-
add
_ bindir (1) -
instance
_ method (1) -
recvfrom
_ nonblock (1) - result (1)
- run (1)
-
trace
_ func (2)
検索結果
先頭5件
-
Fiddle
:: Importer # bind(signature , *opts) { . . . } -> Fiddle :: Function (63925.0) -
Ruby のブロックを C の関数で wrap し、その関数をモジュールに インポートします。
Ruby のブロックを C の関数で wrap し、その関数をモジュールに
インポートします。
これでインポートされた関数はモジュール関数として定義されます。
また、Fiddle::Importer#[] で Fiddle::Function オブジェクトとして
取り出すことができます。
signature で関数の名前とシネグチャを指定します。例えば
"int compare(void*, void*)" のように指定します。
opts には :stdcall もしくは :cdecl を渡すことができ、
呼出規約を明示することができます。
@return インポートした関数を表す ... -
ERB
# result(b=TOPLEVEL _ BINDING) -> String (36904.0) -
ERB を b の binding で実行し、結果の文字列を返します。
ERB を b の binding で実行し、結果の文字列を返します。
@param b eRubyスクリプトが実行されるときのbinding
//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test <%= test1 %>\ntest <%= test2 %>\n")
test1 = "foo"
test2 = "bar"
puts erb.result
# test foo
# test bar
//} -
UDPSocket
# recvfrom _ nonblock(maxlen , flags=0) -> [String , Array] (27340.0) -
ソケットをノンブロッキングモードに設定した後、 recvfrom(2) でソケットからデータを受け取ります。
ソケットをノンブロッキングモードに設定した後、
recvfrom(2) でソケットからデータを受け取ります。
maxlen で受け取るデータの最大バイト数を指定します。
flags はフラグで、Socket::MSG_* の bitwise OR を渡します。
詳しくは recvfrom(2) を参照してください。
返り値はデータの文字列と送り元のアドレス情報の
2要素の配列となります。
recvfrom(2) がエラーになった場合、
Errno::EAGAIN, Errno::EINTR を含め例外 Errno::EXXX が発生します。
Errno::EWOULDBLOCK、Err... -
IRB
:: Frame # trace _ func(event , file , line , id , binding) -> Binding (19204.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
ERB
# run(b=TOPLEVEL _ BINDING) -> nil (18904.0) -
ERB を b の binding で実行し、結果を標準出力へ印字します。
ERB を b の binding で実行し、結果を標準出力へ印字します。
@param b eRubyスクリプトが実行されるときのbinding
//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test <%= test1 %>\ntest <%= test2 %>\n")
test1 = "foo"
test2 = "bar"
erb.run
# test foo
# test bar
//} -
Gem
:: Specification # add _ bindir(executables) -> Array | nil (18904.0) -
実行コマンドの格納場所を返します。
実行コマンドの格納場所を返します。
@param executables 実行コマンド名を格納した配列を指定します。 -
Tracer
# trace _ func(event , file , line , id , binding , klass , *) -> object | nil (18904.0) -
@todo
@todo -
Module
# instance _ method(name) -> UnboundMethod (18622.0) -
self のインスタンスメソッド name をオブジェクト化した UnboundMethod を返します。
self のインスタンスメソッド name をオブジェクト化した UnboundMethod を返します。
@param name メソッド名を Symbol または String で指定します。
@raise NameError self に存在しないメソッドを指定した場合に発生します。
@see Module#public_instance_method, Object#method
//emlist[例][ruby]{
class Interpreter
def do_a() print "there, "; end
def do_d() print "Hello ";...