るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. _builtin nil?
  2. nilclass nil?
  3. object nil?
  4. _builtin nil
  5. object nil

検索結果

OptionParser#load(filename = nil) -> bool (54664.0)

指定された filename を読み込んで各行をまとめたものに対して OptionParser#parse を行ないます。

指定された filename を読み込んで各行をまとめたものに対して OptionParser#parse を行ないます。

パースが成功した場合に true を返します。
ファイルが存在しなかった場合に false を返します。

@param filename 各行をパースしたいファイルの名前を文字列で指定します。
指定されないか nil である場合、~/.options/ に
プログラムのサフィックスを付けた '~/.options/コマンド名' というファイルをパースします。

//emlist[例][ruby]{
re...

OpenSSL::Engine#load_private_key(id=nil, data=nil) -> OpenSSL::PKey::PKey (18913.0)

秘密鍵を engine にロードします。

秘密鍵を engine にロードします。

@param id key id(文字列)
@param data 文字列

OpenSSL::Engine#load_public_key(id=nil, data=nil) -> OpenSSL::PKey::PKey (18913.0)

公開鍵を engine にロードします。

公開鍵を engine にロードします。

@param id key id(文字列)
@param data 文字列

Module#autoload?(const_name) -> String | nil (18691.0)

autoload 定数がまだ定義されてない(ロードされていない) ときにそのパス名を返します。 また、ロード済みなら nil を返します。

autoload 定数がまだ定義されてない(ロードされていない) ときにそのパス名を返します。
また、ロード済みなら nil を返します。

@param const_name String または Symbol で指定します。

@see Kernel.#autoload?

//emlist[例][ruby]{
autoload :Date, 'date'

autoload?(:Date) # => "date"
Date
autoload?(:Date) # => nil
autoload?(:Foo) # => nil
//}

IRB::ExtendCommandBundle#irb_load(*opts, &b) -> nil (18676.0)

現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。

現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。

@see IRB::ExtendCommand::Load#execute

絞り込み条件を変える

Gem::Version#marshal_load(array) -> nil (18628.0)

ダンプされた情報をロードし、自身を破壊的に変更します。

ダンプされた情報をロードし、自身を破壊的に変更します。

//emlist[][ruby]{
version = Gem::Version.new('')
version.marshal_load(["1.2.0a"])
p version # => #<Gem::Version "1.2.0a">
//}

@param array バージョン情報を含む配列を指定します。

Module#autoload(const_name, feature) -> nil (18625.0)

定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。

定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。

const_name が autoload 設定されていて、まだ定義されてない(ロードされていない)ときは、
autoload する対象を置き換えます。
const_name が(autoloadではなく)既に定義されているときは何もしません。

@param const_name String または Symbol で指定します。
なお、const_name には、"::" 演算子を含めることはできません。
つまり、self の直下に定...

Gem::Package::TarInput#load_gemspec(io) -> Gem::Specification | nil (18610.0)

YAML 形式の gemspec を io から読み込みます。

YAML 形式の gemspec を io から読み込みます。

@param io 文字列か IO オブジェクトを指定します。

@see Gem::Specification.from_yaml

IRB::ExtendCommand::Load#execute(file_name, priv = nil) -> nil (9628.0)

ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実 行します。

ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実
行します。

Kernel.#load と異なり、path の内容を irb で一行ずつタイプしたかの
ように、irb 上で一行ずつ評価されます。

@param file_name ファイル名を文字列で指定します。

@param priv 真を指定した場合は実行は内部的に生成される無名モジュール上
で行われ、グローバルな名前空間を汚染しません。

@raise LoadError 読み込みに失敗した場合に発生します。

LoadError#path -> String | nil (9373.0)

Kernel.#require や Kernel.#load に失敗したパスを返します。

Kernel.#require や Kernel.#load に失敗したパスを返します。

begin
require 'this/file/does/not/exist'
rescue LoadError => e
e.path # => 'this/file/does/not/exist'
end

パスが定まらない場合は nil を返します。

絞り込み条件を変える

Psych::SyntaxError#file -> String|nil (361.0)

エラーが生じたファイルの名前を返します。

エラーが生じたファイルの名前を返します。

Psych.load_file で指定したファイルの名前や
Psych.load の第2引数で指定した名前が返されます。
パース時にファイル名を指定しなかった場合は nil が返されます。

Rake::Application#options -> OpenStruct (76.0)

コマンドラインで与えられたアプリケーションのオプションを返します。

コマンドラインで与えられたアプリケーションのオプションを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
Rake.application.options # => #<OpenStruct always_multitask=false, backtrace=false, build_all=false, dryrun=false, ignore_deprecate=false, ignore_system=false, job_stats=...