るりまサーチ

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

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. kernel p
  5. dh p

検索結果

<< < 1 2 3 >>

RDoc::Parser::RD#scan -> RDoc::TopLevel (3208.0)

RD 形式で記述されたファイルを解析します。

...RD 形式で記述されたファイルを解析します。

@return RDoc::TopLevel オブジェクトを返します。...

RDoc::Parser::Ruby#scan -> RDoc::TopLevel (3208.0)

Ruby のソースコードからクラス/モジュールのドキュメントを解析します。

...Ruby のソースコードからクラス/モジュールのドキュメントを解析します。

@return RDoc::TopLevel オブジェクトを返します。...

ERB#result(b=TOPLEVEL_BINDING) -> String (202.0)

ERB を b の binding で実行し、結果の文字列を返します。

...を b の binding で実行し、結果の文字列を返します。

@param b eRubyスクリプトが実行されるときのbinding

//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test <%= test1 %>\ntest <%= test2 %>\n")
test1 = "foo"
test2 = "bar"
p
uts erb.result
# test foo
# test bar
//}...
...ing で実行し、結果の文字列を返します。

@param b eRubyスクリプトが実行されるときのbinding

//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test <%= test1 %>\ntest <%= test2 %>\n")
test1 = "foo"
test2 = "bar"
p
uts erb.result
# test foo
# test bar
//}

@see ERB#result_...

ERB#run(b=TOPLEVEL_BINDING) -> nil (202.0)

ERB を b の binding で実行し、結果を標準出力へ印字します。

...ERB を b の binding で実行し、結果を標準出力へ印字します。

@param b eRubyスクリプトが実行されるときのbinding

//emlist[例][ruby]{
require 'erb'
erb = ERB.new("test <%= test1 %>\ntest <%= test2 %>\n")
test1 = "foo"
test2 = "bar"
erb.run
# test foo
# test bar
//}...

RDoc::Context#record_location(toplevel) (202.0)

Record the file that we happen to find it in

...Record the file that we happen to find it in...

絞り込み条件を変える

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

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

...は何もしません。

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

@param feature Kernel.#require...
...tmp/foo.rb ---------
class Foo
class Bar
end
end
# ----- end of /tmp/foo.rb ----

class Foo
autoload :Bar, '/tmp/foo'
end
p
Foo::Bar #=> Foo::Bar
//}

以下のようにモジュールを明示的にレシーバとして呼び出すこともできます。

//emlist[例][ruby]{
# ------- /tmp/...
...foo.rb ---------
class Foo
class Bar
end
end
# ----- end of /tmp/foo.rb ----

class Foo
end
Foo.autoload :Bar, '/tmp/foo'
p
Foo::Bar #=> Foo::Bar
//}

以下のように、autoload したライブラリがネストした定数を定義しない場
合、一見、正常に動作しているよう...
<< < 1 2 3 >>