るりまサーチ

最速Rubyリファレンスマニュアル検索!
360件ヒット [201-300件を表示] (0.090秒)

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. dbm to_a
  5. argf.class to_a

検索結果

<< < 1 2 3 4 > >>

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'

A
ddrinfo.udp("127.0.0.1", 0).bind {|s1|
A
ddrinfo.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 が最
下位になります。...

絞り込み条件を変える

<< < 1 2 3 4 > >>