るりまサーチ

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

別のキーワード

  1. tempfile create
  2. resolv create
  3. registry create
  4. win32/registry create
  5. openssl create

検索結果

<< < ... 2 3 4 >>

Binding#local_variable_set(symbol, obj) (7.0)

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

...[例][ruby]{
def foo
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_varia...

Gem::Specification#required_ruby_version=(requirement) (7.0)

この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。

...この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。

@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。

@see Gem::Requirement...

Gem::Specification#required_rubygems_version=(requirement) (7.0)

この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。

...この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。

@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。

@see Gem::Requirement...

Net::FTP::MLSxEntry#facts -> { String => String|Integer|Time } (7.0)

そのエントリの「facts」を返します。

...perm, type, size, unique はすべてのサーバで
対応すべき(SHOULD)、とされています。


* "modify" : 変更時刻 (Time)
* "create": 作成時刻
* "perm": パーミッション(String)
* "type": 種類(String, "file", "dir", "cdir", "pdir" など)
* "size": ファイル...

Pathname#empty? -> bool (7.0)

ディレクトリに対しては Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。

...ame(dir).empty? } # => true
//}

//emlist[例 ファイルの場合][ruby]{
require "pathname"
require 'tempfile'

Pathname("testfile").empty? # => false
Tempfile.create("tmp") { |tmp| Pathname(tmp).empty? } # => true
//}

@see Dir.empty?, FileTest.#empty?, Pathname#zero?...

絞り込み条件を変える

Win32::Registry#keyname (7.0)

@todo

...@todo

Win32::Registry.open または Win32::Registry.create に指定された
subkey の値を返します。...
<< < ... 2 3 4 >>