るりまサーチ

最速Rubyリファレンスマニュアル検索!
279件ヒット [1-100件を表示] (0.097秒)
トップページ > クエリ:-[x] > クエリ:g[x] > クエリ:push[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

クラス

モジュール

オブジェクト

検索結果

<< 1 2 3 > >>

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...

絞り込み条件を変える

<< 1 2 3 > >>