296件ヒット
[1-100件を表示]
(0.223秒)
ライブラリ
- ビルトイン (92)
- e2mmap (6)
-
fiddle
/ import (11) -
irb
/ frame (33) -
rubygems
/ installer (33) -
rubygems
/ specification (33) - socket (77)
- tracer (11)
クラス
- Addrinfo (22)
- Binding (60)
-
Gem
:: Installer (33) -
Gem
:: Specification (33) - IPSocket (11)
-
IRB
:: Frame (33) - Module (11)
- Socket (22)
-
Socket
:: AncillaryData (11) - TracePoint (11)
- Tracer (11)
- UDPSocket (11)
- UnboundMethod (10)
モジュール
- Exception2MessageMapper (6)
-
Fiddle
:: Importer (11)
キーワード
-
add
_ bindir (11) -
bind
_ call (10) - binding (11)
- bindir (11)
- bindir= (11)
- bottom (11)
- eval (11)
-
generate
_ bin _ script (11) -
generate
_ bin _ symlink (11) -
generate
_ windows _ script (11) -
instance
_ method (11) -
local
_ variable _ defined? (11) -
local
_ variable _ get (11) -
local
_ variable _ set (11) -
local
_ variables (10) - recvfrom (22)
-
recvfrom
_ nonblock (11) -
source
_ location (6) - top (11)
-
trace
_ func (22)
検索結果
先頭5件
-
Addrinfo
# bind -> Socket (27209.0) -
自身のアドレスにバインドされたソケットを作成します。
...がメソッドの返り値となります。
ブロックを省略した場合は、生成された Socket
オブジェクトが返されます。
require 'socket'
Addrinfo.udp("0.0.0.0", 9981).bind {|s|
s.local_address.connect {|s| s.send "hello", 0 }
p s.recv(10) #=> "hello"
}... -
Addrinfo
# bind {|sock| . . . } -> object (27209.0) -
自身のアドレスにバインドされたソケットを作成します。
...がメソッドの返り値となります。
ブロックを省略した場合は、生成された Socket
オブジェクトが返されます。
require 'socket'
Addrinfo.udp("0.0.0.0", 9981).bind {|s|
s.local_address.connect {|s| s.send "hello", 0 }
p s.recv(10) #=> "hello"
}... -
Exception2MessageMapper
# bind(cl) -> () (27202.0) -
@todo
...@todo
@param cl xxx... -
Socket
# bind(my _ sockaddr) -> 0 (24318.0) -
ソケットを my_sockaddr に結合します。bind(2) と同じ働きをします。
...ソケットを my_sockaddr に結合します。bind(2)
と同じ働きをします。
@param my_sockaddr ソケットアドレス構造体を pack した文字列lib:socket#pack_stringもしくはAddrinfoオブジェクトを指定します。
@return 0 を返します。... -
Fiddle
:: Importer # bind(signature , *opts) { . . . } -> Fiddle :: Function (24308.0) -
Ruby のブロックを C の関数で wrap し、その関数をモジュールに インポートします。
...で wrap し、その関数をモジュールに
インポートします。
これでインポートされた関数はモジュール関数として定義されます。
また、Fiddle::Importer#[] で Fiddle::Function オブジェクトとして
取り出すことができます。
signature......"int compare(void*, void*)" のように指定します。
opts には :stdcall もしくは :cdecl を渡すことができ、
呼出規約を明示することができます。
@return インポートした関数を表す Fiddle::Function オブジェクトを返します。
@param signature......の名前とシネグチャ
@param opts オプション
例
require 'fiddle/import'
module M
extend Fiddle::Importer
dlload "libc.so.6"
typealias "size_t", "unsigned long"
extern "int qsort(void*, size_t, size_t, void*)"
bind("int compare(void*, void*)"){|px, py|... -
UnboundMethod
# bind _ call(recv , *args) -> object (18337.0) -
self を recv に bind して args を引数として呼び出します。
...self を recv に bind して args を引数として呼び出します。
self.bind(recv).call(*args) と同じ意味です。
//emlist[][ruby]{
puts Kernel.instance_method(:inspect).bind_call(BasicObject.new) # => #<BasicObject:0x000055c65e8ea7b8>
//}
@see UnboundMethod#bind, Method#call... -
UnboundMethod
# bind _ call(recv , *args) { . . . } -> object (18337.0) -
self を recv に bind して args を引数として呼び出します。
...self を recv に bind して args を引数として呼び出します。
self.bind(recv).call(*args) と同じ意味です。
//emlist[][ruby]{
puts Kernel.instance_method(:inspect).bind_call(BasicObject.new) # => #<BasicObject:0x000055c65e8ea7b8>
//}
@see UnboundMethod#bind, Method#call... -
Gem
:: Specification # add _ bindir(executables) -> Array | nil (18301.0) -
実行コマンドの格納場所を返します。
...実行コマンドの格納場所を返します。
@param executables 実行コマンド名を格納した配列を指定します。... -
TracePoint
# binding -> Binding (15401.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...発生したイベントによって生成された Binding オブジェクトを返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
TracePoint
# binding -> Binding | nil (15401.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
... Binding オブジェクトを返します。
C で記述されたメソッドは binding を生成しないため、
:c_call および :c_return イベントに対しては nil を返すことに注意してください。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call)......do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
Tracer
# trace _ func(event , file , line , id , binding , klass , *) -> object | nil (15301.0) -
@todo
@todo -
Binding
# local _ variable _ defined?(symbol) -> bool (15213.0) -
引数 symbol で指定した名前のローカル変数が定義されている場合に true を、 そうでない場合に false を返します。
...そうでない場合に false を返します。
@param symbol ローカル変数名を Symbol オブジェクトで指定します。
//emlist[例][ruby]{
def foo
a = 1
binding.local_variable_defined?(:a) # => true
binding.local_variable_defined?(:b) # => false
end
//}
このメソッド......は以下のコードの短縮形です。
//emlist[][ruby]{
binding.eval("defined?(#{symbol}) == 'local-variable'")
//}
@see Binding#local_variable_get, Binding#local_variable_set...