るりまサーチ

最速Rubyリファレンスマニュアル検索!
3765件ヒット [101-200件を表示] (0.023秒)

別のキーワード

  1. socket pf_local
  2. socket af_local
  3. socket local_creds
  4. socket local_peercred
  5. socket local_connwait

オブジェクト

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Time.local(year, mon = 1, day = 1, hour = 0, min = 0, sec = 0, usec = 0) -> Time (18108.0)

引数で指定した地方時の Time オブジェクトを返します。

...字列で指定します。(60はうるう秒)

@param usec マイクロ秒を整数か文字列で指定します。

@raise ArgumentError 与えられた引数の範囲が valid でない場合に発生します。

//emlist[][ruby]{
p Time.local(2000, 1, 1) # => 2000-01-01 00:00:00 +0900
//}...

Time.local(sec, min, hour, mday, mon, year, wday, yday, isdst, zone) -> Time (18103.0)

引数で指定した地方時の Time オブジェクトを返します。

引数で指定した地方時の Time オブジェクトを返します。

引数の順序は Time#to_a と全く同じです。
引数 wday, yday, zone に指定した値は無視されます。
引数に nil を指定した場合の値はその引数がとり得る最小の値です。

@param sec 秒を 0 から 60 までの整数か文字列で指定します。(60はうるう秒)

@param min 分を 0 から 59 までの整数か文字列で指定します。

@param hour 時を 0 から 23 までの整数か文字列で指定します。

@param mday 日を 1 から 31 までの整数か文字列で指定しま...

Gem::Platform.local -> Gem::Platform (18101.0)

@todo ???

@todo ???

Gem::LocalRemoteOptions#add_local_remote_options (9117.0)

オプション --local, --remote, --both を追加します。

...オプション --local, --remote, --both を追加します。...

Gem::LocalRemoteOptions#local? -> bool (9101.0)

ローカルの情報を取得する場合は真を返します。 そうでない場合は偽を返します。

ローカルの情報を取得する場合は真を返します。
そうでない場合は偽を返します。

絞り込み条件を変える

Binding#local_variable_set(symbol, obj) (6149.0)

引数 symbol で指定した名前のローカル変数に引数 obj を設定します。

...a = 1
bind = binding
bind.local_variable_set(:a, 2) # set existing local variable `a'
bind.local_variable_set(:b, 3) # create new local variable `b'
# `b' exists only in binding
p bind.local_variable_get(:a) # => 2
p bind.local_variable_get(:b) # => 3
p...
...# => NameError
end
//}

このメソッドは以下のコード(ただし、obj が Ruby のコードで出力される場
合)と同様の動作をします。

//emlist[][ruby]{
binding.eval("#{symbol} = #{obj}")
//}

@see Binding#local_variable_get, Binding#local_variable_defined?...

Binding#local_variable_defined?(symbol) -> bool (6131.0)

引数 symbol で指定した名前のローカル変数が定義されている場合に true を、 そうでない場合に false を返します。

...binding.local_variable_defined?(:a) # => true
binding.local_variable_defined?(:b) # => false
end
//}

このメソッドは以下のコードの短縮形です。

//emlist[][ruby]{
binding.eval("defined?(#{symbol}) == 'local-variable'")
//}

@see Binding#local_variable_get, Binding#local_variabl...

Binding#local_variable_get(symbol) -> object (6125.0)

引数 symbol で指定した名前のローカル変数に設定された値を返します。

...][ruby]{
def foo
a = 1
binding.local_variable_get(:a) # => 1
binding.local_variable_get(:b) # => NameError
end
//}

このメソッドは以下のコードの短縮形です。

//emlist[][ruby]{
binding.eval("#{symbol}")
//}

@see Binding#local_variable_set, Binding#local_variable_defined?...

Net::HTTP#local_host=(host) (6125.0)

接続に用いるローカルホスト名を指定します。

...ost ホスト名、もしくはアドレスを示す文字列

//emlist[例][ruby]{
require 'net/http'

http = Net::HTTP.new("www.example.com")
http.local_host = "192.168.0.5"
http.local_port = "53043"

http.start do |h|
p h.get("/").body
end
//}

@see Net::HTTP#local_host=, Net::HTTP#local_port...
<< < 1 2 3 4 ... > >>