258件ヒット
[201-258件を表示]
(0.115秒)
別のキーワード
ライブラリ
- ビルトイン (27)
- erb (22)
-
irb
/ xmp (11) -
rdoc
/ context (22) -
rdoc
/ parser / c (11) -
rdoc
/ parser / changelog (11) -
rdoc
/ parser / markdown (11) -
rdoc
/ parser / rd (11) -
rdoc
/ parser / ruby (11) -
rdoc
/ parser / simple (11) -
rdoc
/ top _ level (110)
クラス
- ERB (22)
- Module (27)
-
RDoc
:: Context (22) -
RDoc
:: Parser :: C (11) -
RDoc
:: Parser :: ChangeLog (11) -
RDoc
:: Parser :: Markdown (11) -
RDoc
:: Parser :: RD (11) -
RDoc
:: Parser :: Ruby (11) -
RDoc
:: Parser :: Simple (11) -
RDoc
:: TopLevel (110)
モジュール
- Kernel (11)
キーワード
-
add
_ class _ or _ module (11) - autoload (4)
-
file
_ absolute _ name (11) -
file
_ absolute _ name= (11) -
file
_ relative _ name (11) -
file
_ relative _ name= (11) -
file
_ stat (11) -
file
_ stat= (11) -
find
_ local _ symbol (11) -
find
_ module _ named (11) -
full
_ name (11) - public (23)
-
record
_ location (11) - result (11)
- run (11)
- scan (66)
- xmp (11)
検索結果
先頭5件
-
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"
puts 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"
puts 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 したライブラリがネストした定数を定義しない場
合、一見、正常に動作しているよう...