279件ヒット
[1-100件を表示]
(0.097秒)
種類
- インスタンスメソッド (143)
- 特異メソッド (77)
- 文書 (37)
- 定数 (22)
ライブラリ
クラス
- Array (11)
-
CSV
:: Row (11) -
Psych
:: Visitors :: YAMLTree (11) - Socket (11)
-
Thread
:: Queue (33)
モジュール
- Forwardable (22)
- Kernel (55)
-
Socket
:: Constants (11)
オブジェクト
-
Readline
:: HISTORY (77)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (11)
- DelegateClass (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 3
. 0 . 0 (4) -
TCP
_ NOPUSH (22) -
def
_ delegator (11) -
def
_ instance _ delegator (11) -
delete
_ at (11) -
enable
_ config (22) - join (11)
- length (22)
-
num
_ waiting (11) - pop (11)
-
ruby 1
. 6 feature (11) - shift (11)
- size (22)
- start (11)
-
with
_ config (22)
検索結果
先頭5件
-
Readline
:: HISTORY . push(*string) -> self (18313.0) -
ヒストリの最後に string で指定した文字列を追加します。複数の string を指定できます。 self を返します。
...ring で指定した文字列を追加します。複数の string を指定できます。
self を返します。
@param string 文字列を指定します。複数指定できます。
例: "foo"を追加する。
require "readline"
Readline::HISTORY.push("foo")
p Readline::HISTORY[-1]......#=> "foo"
例: "foo"、"bar"を追加する。
require "readline"
Readline::HISTORY.push("foo", "bar")
p Readline::HISTORY[-1] #=> "bar"
p Readline::HISTORY[-2] #=> "foo"
@see Readline::HISTORY.<<... -
CSV
:: Row # push(*args) -> self (18301.0) -
複数のフィールドを追加するためのショートカットです。
...複数のフィールドを追加するためのショートカットです。
以下とおなじです:
args.each { |arg| csv_row << arg }
@return メソッドチェーンのために自身を返します。... -
Socket
:: Constants :: TCP _ NOPUSH -> Integer (6316.0) -
Don't push the last block of write。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Don't push the last block of write。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see tcp(4freebsd), tcp(7linux)... -
Socket
:: TCP _ NOPUSH -> Integer (6316.0) -
Don't push the last block of write。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Don't push the last block of write。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see tcp(4freebsd), tcp(7linux)... -
Forwardable
# def _ delegator(accessor , method , ali = method) -> () (6212.0) -
メソッドの委譲先を設定します。
...def_delegator は def_instance_delegator の別名になります。
例:
require 'forwardable'
class MyQueue
extend Forwardable
attr_reader :queue
def initialize
@queue = []
end
def_delegator :@queue, :push, :mypush
end
q = MyQueue.new
q.mypush 42
q.queue......# => [42]
q.push 23 # => NoMethodError
@see Forwardable#def_delegators... -
Forwardable
# def _ instance _ delegator(accessor , method , ali = method) -> () (6212.0) -
メソッドの委譲先を設定します。
...def_delegator は def_instance_delegator の別名になります。
例:
require 'forwardable'
class MyQueue
extend Forwardable
attr_reader :queue
def initialize
@queue = []
end
def_delegator :@queue, :push, :mypush
end
q = MyQueue.new
q.mypush 42
q.queue......# => [42]
q.push 23 # => NoMethodError
@see Forwardable#def_delegators... -
Thread
:: Queue # num _ waiting -> Integer (6212.0) -
キューを待っているスレッドの数を返します。
...キューを待っているスレッドの数を返します。
//emlist[例][ruby]{
require 'thread'
q = SizedQueue.new(1)
q.push(1)
t = Thread.new { q.push(2) }
sleep 0.05 until t.stop?
q.num_waiting # => 1
q.pop
t.join
//}... -
Kernel
# DelegateClass(superclass) -> object (6206.0) -
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、 そのクラスを返します。
...ラスを定義し、
そのクラスを返します。
@param superclass 委譲先となるクラス
例:
//emlist{
require 'delegate'
class ExtArray < DelegateClass(Array)
def initialize
super([])
end
end
a = ExtArray.new
p a.class # => ExtArray
a.push 25
p a # => [25]
//}... -
Kernel
# enable _ config(config , default) -> bool | String (6206.0) -
configure のオプションを検査します。
...configure のオプションを検査します。
configure のオプションに --enable-<config> が指定された場合は、真を返し
ます。--disable-<config> が指定された場合は。偽を返します。どちらでもな
い場合は default を返します。
これはデバ......義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if enable_config("debug")
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
end... -
Kernel
# enable _ config(config , default) {|config , default| . . . } -> bool | String (6206.0) -
configure のオプションを検査します。
...configure のオプションを検査します。
configure のオプションに --enable-<config> が指定された場合は、真を返し
ます。--disable-<config> が指定された場合は。偽を返します。どちらでもな
い場合は default を返します。
これはデバ......義を、追加するのに役立ちます。
@param config configure のオプションの名前を指定します。
@param default デフォルト値を返します。
例
require 'mkmf'
if enable_config("debug")
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
end...