360件ヒット
[201-300件を表示]
(0.090秒)
ライブラリ
- ビルトイン (126)
- e2mmap (6)
-
fiddle
/ import (12) -
irb
/ frame (36) -
rubygems
/ installer (36) -
rubygems
/ specification (36) - socket (96)
- tracer (12)
クラス
- Addrinfo (24)
- Binding (66)
-
Gem
:: Installer (36) -
Gem
:: Specification (36) - IPSocket (12)
-
IRB
:: Frame (36) - Method (24)
- Module (12)
- Socket (36)
-
Socket
:: AncillaryData (12) - TracePoint (12)
- Tracer (12)
- UDPSocket (12)
- UnboundMethod (12)
モジュール
- Exception2MessageMapper (6)
-
Fiddle
:: Importer (12)
キーワード
- === (6)
- [] (6)
- accept (12)
-
add
_ bindir (12) -
bind
_ call (12) - binding (12)
- bindir (12)
- bindir= (12)
- bottom (12)
- call (12)
- eval (12)
-
generate
_ bin _ script (12) -
generate
_ bin _ symlink (12) -
generate
_ windows _ script (12) -
instance
_ method (12) -
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) -
local
_ variables (11) - recvfrom (24)
-
recvfrom
_ nonblock (12) -
source
_ location (7) - top (12)
-
trace
_ func (24)
検索結果
先頭5件
-
IRB
:: Frame # trace _ func(event , file , line , id , binding) -> Binding (6301.0) -
ライブラリ内部で使用します。
ライブラリ内部で使用します。 -
Gem
:: Installer # generate _ bin _ script(filename , bindir) (6201.0) -
Gem に入っているアプリケーションを実行するためのスクリプトを作成します。
...Gem に入っているアプリケーションを実行するためのスクリプトを作成します。
@param filename ファイル名を指定します。
@param bindir 実行ファイルを配置するディレクトリを指定します。... -
Gem
:: Installer # generate _ bin _ symlink(filename , bindir) (6201.0) -
Gem に入っているアプリケーションを実行するためのシンボリックリンクを作成します。
...現在インストールされている Gem よりも新しい Gem をインストールするときは、
シンボリックリンクを更新します。
@param filename ファイル名を指定します。
@param bindir 実行ファイルを配置するディレクトリを指定します。... -
Gem
:: Installer # generate _ windows _ script(filename , bindir) (6201.0) -
コマンドの実行を容易にするために Windows 向けのバッチファイルを作成します。
...コマンドの実行を容易にするために Windows 向けのバッチファイルを作成します。
@param bindir 実行ファイルを配置するディレクトリを指定します。
@param filename ファイル名を指定します。... -
Module
# instance _ method(name) -> UnboundMethod (6125.0) -
self のインスタンスメソッド name をオブジェクト化した UnboundMethod を返します。
...スメソッド name をオブジェクト化した UnboundMethod を返します。
@param name メソッド名を Symbol または String で指定します。
@raise NameError self に存在しないメソッドを指定した場合に発生します。
@see Module#public_instance_method, Obje......]{
class Interpreter
def do_a() print "there, "; end
def do_d() print "Hello "; end
def do_e() print "!\n"; end
def do_v() print "Dave"; end
Dispatcher = {
"a" => instance_method(:do_a),
"d" => instance_method(:do_d),
"e" => instance_method(:do_e),
"v" => instance_m......ethod(:do_v)
}
def interpret(string)
string.each_char {|b| Dispatcher[b].bind(self).call }
end
end
interpreter = Interpreter.new
interpreter.interpret('dave')
# => Hello there, Dave!
//}... -
Socket
:: AncillaryData # timestamp -> Time (6119.0) -
タイムスタンプ制御メッセージに含まれる時刻を Time オブジェクト で返します。
...CM_TIMESTAMP (micro second) GNU/Linux, FreeBSD, NetBSD, OpenBSD, Solaris, MacOS X
* SOL_SOCKET/SCM_TIMESTAMPNS (nano second) GNU/Linux
* SOL_SOCKET/SCM_BINTIME (2**(-64) second) FreeBSD
require 'socket'
Addrinfo.udp("127.0.0.1", 0).bind {|s1|
Addrinfo.udp("127.0.0.1", 0).bind {|s2|......s1.setsockopt(:SOCKET, :TIMESTAMP, true)
s2.send "a", 0, s1.local_address
ctl = s1.recvmsg.last
p ctl
#=> #<Socket::AncillaryData: INET SOCKET TIMESTAMP 2009-02-24 17:35:46.775581>
t = ctl.timestamp
p t #=> 2009-02-24 17:35:46 +0900
p t.usec #=......> 775581
p t.nsec #=> 775581000
}
}
@see Socket::Constants::SCM_TIMESTAMP,
Socket::Constants::SCM_TIMESTAMPNS,
Socket::Constants::SCM_BINTIME,
Socket::Constants::SO_TIMESTAMP,
Socket::Constants::SO_TIMESTAMPNS,
Socket::Constants::SO_BINTIME... -
Socket
# accept -> Array (6107.0) -
新しい接続を受け付けて、新しい接続に対するソケットとアドレスの ペアを返します。accept(2) を参照。
...accept(2) を参照。
たとえば IPv4 の TCP サーバソケットを生成し、accept でクライアントからの接続を受け付けるには以下のようにします。
例:
require 'socket'
serv = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
sockaddr = Socket.sockaddr......_in(8080, "0.0.0.0")
serv.bind(sockaddr)
serv.listen(5)
sock = serv.accept... -
Method
# call(*args) -> object (3107.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
...れたもので、Array#[]のような
他の [] メソッドとの意味的な関連性はありません。
@param args self に渡される引数。
@see UnboundMethod#bind_call
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = F......oo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2"
//}......に用意されたもので、Array#[]のような
他の [] メソッドとの意味的な関連性はありません。
@param args self に渡される引数。
@see UnboundMethod#bind_call
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.m......ethod(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2"
//}... -
Method
# call(*args) { . . . } -> object (3107.0) -
メソッドオブジェクトに封入されているメソッドを起動します。
...れたもので、Array#[]のような
他の [] メソッドとの意味的な関連性はありません。
@param args self に渡される引数。
@see UnboundMethod#bind_call
@see spec/safelevel
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = F......oo.new.method(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2"
//}......に用意されたもので、Array#[]のような
他の [] メソッドとの意味的な関連性はありません。
@param args self に渡される引数。
@see UnboundMethod#bind_call
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.m......ethod(:foo) # => #<Method: Foo#foo>
m[1] # => "foo called with arg 1"
m.call(2) # => "foo called with arg 2"
//}... -
IRB
:: Frame # bottom(n = 0) -> Binding (3101.0) -
下から n 番目のコンテキストを取り出します。
...下から n 番目のコンテキストを取り出します。
@param n 取り出すコンテキストを Integer で指定します。n は 0 が最
下位になります。...