455件ヒット
[1-100件を表示]
(0.075秒)
ライブラリ
- ビルトイン (163)
- e2mmap (6)
- erb (22)
-
fiddle
/ import (11) -
irb
/ frame (33) -
irb
/ xmp (11) - resolv-replace (11)
-
rubygems
/ installer (33) -
rubygems
/ specification (33) - socket (110)
- tracer (11)
- un (11)
クラス
- Addrinfo (22)
- Binding (78)
- ERB (22)
-
Gem
:: Installer (33) -
Gem
:: Specification (33) - IPSocket (11)
-
IRB
:: Frame (33) - Method (31)
- Module (11)
- Proc (11)
- Socket (33)
-
Socket
:: AncillaryData (11) - TracePoint (11)
- Tracer (11)
- UDPSocket (44)
- UnboundMethod (21)
モジュール
- Exception2MessageMapper (6)
-
Fiddle
:: Importer (11) - Kernel (22)
キーワード
- === (5)
- [] (5)
- accept (11)
-
add
_ bindir (11) -
bind
_ call (10) - binding (22)
- bindir (11)
- bindir= (11)
- bottom (11)
- call (10)
- connect (11)
- eval (11)
-
generate
_ bin _ script (11) -
generate
_ bin _ symlink (11) -
generate
_ windows _ script (11) - httpd (11)
-
instance
_ method (11) - irb (8)
-
local
_ variable _ defined? (11) -
local
_ variable _ get (11) -
local
_ variable _ set (11) -
local
_ variables (10) - receiver (10)
- recvfrom (22)
-
recvfrom
_ nonblock (11) - result (11)
- run (11)
-
source
_ location (6) - top (11)
-
trace
_ func (22) - unbind (11)
- xmp (11)
検索結果
先頭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
//}... -
TracePoint
# binding -> Binding (6201.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
//}...