500件ヒット
[1-100件を表示]
(0.075秒)
ライブラリ
- ビルトイン (182)
- e2mmap (6)
- erb (24)
-
fiddle
/ import (12) -
irb
/ frame (36) -
irb
/ xmp (12) - resolv-replace (12)
-
rubygems
/ installer (36) -
rubygems
/ specification (36) - socket (120)
- tracer (12)
- un (12)
クラス
- Addrinfo (24)
- Binding (86)
- ERB (24)
-
Gem
:: Installer (36) -
Gem
:: Specification (36) - IPSocket (12)
-
IRB
:: Frame (36) - Method (36)
- Module (12)
- Proc (12)
- Socket (36)
-
Socket
:: AncillaryData (12) - TracePoint (12)
- Tracer (12)
- UDPSocket (48)
- UnboundMethod (24)
モジュール
- Exception2MessageMapper (6)
-
Fiddle
:: Importer (12) - Kernel (24)
キーワード
- === (6)
- [] (6)
- accept (12)
-
add
_ bindir (12) -
bind
_ call (12) - binding (24)
- bindir (12)
- bindir= (12)
- bottom (12)
- call (12)
- connect (12)
- eval (12)
-
generate
_ bin _ script (12) -
generate
_ bin _ symlink (12) -
generate
_ windows _ script (12) - httpd (12)
-
instance
_ method (12) - irb (9)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) -
local
_ variables (11) - receiver (11)
- recvfrom (24)
-
recvfrom
_ nonblock (12) - result (12)
- run (12)
-
source
_ location (7) - top (12)
-
trace
_ func (24) - unbind (12)
- xmp (12)
検索結果
先頭5件
-
UDPSocket
# bind(host , port) -> 0 (18136.0) -
ソケットを host の port に bind(2) します。
...ソケットを host の port に bind(2) します。
bind したポートから Socket#recv でデータを受け取ることができます。
@param host bind するホスト名文字列
@param port bind するポート番号... -
UnboundMethod
# bind(obj) -> Method (18132.0) -
self を obj にバインドした Method オブジェクトを生成して返します。
...バインドできるのは、
生成元のクラスかそのサブクラスのインスタンスのみです。
@raise TypeError objがbindできないオブジェクトである場合に発生します
//emlist[例][ruby]{
# クラスのインスタンスメソッドの UnboundMethod......スをレシーバとする Method オブジェクトを生成
p m.bind(Foo.new) # => #<Method: Foo#foo>
# Foo のサブクラス Bar のインスタンスをレシーバとする Method
class Bar < Foo
end
p m.bind(Bar.new) # => #<Method: Bar(Foo)#foo>
# モジュー......_method(:foo) # => #<UnboundMethod: Foo#foo>
# Foo をインクルードしたクラス Bar のインスタンスをレシーバと
# する Method オブジェクトを生成
class Bar
include Foo
end
p m.bind(Bar.new) # => #<Method: Bar(Foo)#foo>
//}
@see UnboundMethod#bind_call... -
UDPSocket
# bind(host , port) -> Integer (18130.0) -
UDPSocket#bindのパラメータ host の名前解決に resolv ライブラリを使います。
...UDPSocket#bindのパラメータ host の名前解決に resolv
ライブラリを使います。
@param host bindするホスト名を文字列で指定します。
@param port bindするポートを指定します。
@raise SocketError 名前解決に失敗した場合に発生します。... -
UnboundMethod
# bind(obj) -> Method (18126.0) -
self を obj にバインドした Method オブジェクトを生成して返します。
...バインドできるのは、
生成元のクラスかそのサブクラスのインスタンスのみです。
@raise TypeError objがbindできないオブジェクトである場合に発生します
//emlist[例][ruby]{
# クラスのインスタンスメソッドの UnboundMethod......スをレシーバとする Method オブジェクトを生成
p m.bind(Foo.new) # => #<Method: Foo#foo>
# Foo のサブクラス Bar のインスタンスをレシーバとする Method
class Bar < Foo
end
p m.bind(Bar.new) # => #<Method: Bar(Foo)#foo>
# モジュー......を生成
p m = Foo.instance_method(:foo) # => #<UnboundMethod: Foo#foo>
# Foo をインクルードしたクラス Bar のインスタンスをレシーバと
# する Method オブジェクトを生成
class Bar
include Foo
end
p m.bind(Bar.new) # => #<Method: Bar(Foo)#foo>
//}... -
Socket
# bind(my _ sockaddr) -> 0 (18118.0) -
ソケットを my_sockaddr に結合します。bind(2) と同じ働きをします。
...ソケットを my_sockaddr に結合します。bind(2)
と同じ働きをします。
@param my_sockaddr ソケットアドレス構造体を pack した文字列lib:socket#pack_stringもしくはAddrinfoオブジェクトを指定します。
@return 0 を返します。... -
Addrinfo
# bind -> Socket (18109.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 (18109.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"
}... -
Fiddle
:: Importer # bind(signature , *opts) { . . . } -> Fiddle :: Function (18108.0) -
Ruby のブロックを C の関数で wrap し、その関数をモジュールに インポートします。
...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|
x = px.to_s(Fiddle::SIZEOF_INT).unpack("i!")
y = py.to_s(Fiddle::SIZEOF_INT).unpack("i!")... -
Exception2MessageMapper
# bind(cl) -> () (18102.0) -
@todo
@todo
@param cl xxx -
Proc
# binding -> Binding (6201.0) -
Proc オブジェクトが保持するコンテキストを Binding オブジェクトで返します。
...Proc オブジェクトが保持するコンテキストを
Binding オブジェクトで返します。
//emlist[例][ruby]{
def fred(param)
proc {}
end
sample_proc = fred(99)
eval("param", sample_proc.binding) # => 99
//}...