258件ヒット
[101-200件を表示]
(0.146秒)
ライブラリ
- ビルトイン (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
:: TopLevel # find _ local _ symbol(name) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule | RDoc :: AnyMethod | RDoc :: Alias | RDoc :: Attr | RDoc :: Constant - RDoc
:: TopLevel # full _ name -> String - ERB
# result(b=TOPLEVEL _ BINDING) -> String - RDoc
:: Context # record _ location(toplevel) - Module
# autoload(const _ name , feature) -> nil
-
RDoc
:: TopLevel # find _ local _ symbol(name) -> RDoc :: NormalClass | RDoc :: SingleClass | RDoc :: NormalModule | RDoc :: AnyMethod | RDoc :: Alias | RDoc :: Attr | RDoc :: Constant (9101.0) -
クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。
...クラス、モジュール、メソッド、定数、属性、alias、ファイルから name で指定したものを返します。見つからなかった場合は nil を返します。... -
RDoc
:: TopLevel # full _ name -> String (9101.0) -
自身が管理するファイルの名前を返します。
自身が管理するファイルの名前を返します。 -
ERB
# result(b=TOPLEVEL _ BINDING) -> String (6202.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
//}......し、結果の文字列を返します。
@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_with_hash... -
RDoc
:: Context # record _ location(toplevel) (6202.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 (6113.0) -
定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
...参照した時に feature を Kernel.#require するように設定します。
const_name が autoload 設定されていて、まだ定義されてない(ロードされていない)ときは、
autoload する対象を置き換えます。
const_name が(autoloadではなく)既に定義され......ring または Symbol で指定します。
なお、const_name には、"::" 演算子を含めることはできません。
つまり、self の直下に定義された定数しか指定できません。
@param feature Kernel.#require と同様な方法で autoload する対象を......emlist[例][ruby]{
# ------- /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
//}
以下のようにモジュールを明示的にレシーバとして呼び出すこともできます。
//emli... -
Module
# public() -> nil (6107.0) -
メソッドを public に設定します。
...メソッドを public に設定します。
引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドをどんな形式でも呼び出せるように(public)設定します。
引数が与えられた時には引数によって指定......されたメソッドを public に設
定します。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameErr......//emlist[例][ruby]{
def foo() 1 end
p foo # => 1
# the toplevel default is private
p self.foo # => private method `foo' called for #<Object:0x401c83b0> (NoMethodError)
def bar() 2 end
public :bar # visibility changed (all access allowed)
p bar # => 2
p self.ba... -
Module
# public(*name) -> Array (6107.0) -
メソッドを public に設定します。
...メソッドを public に設定します。
引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドをどんな形式でも呼び出せるように(public)設定します。
引数が与えられた時には引数によって指定......されたメソッドを public に設
定します。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameErr......//emlist[例][ruby]{
def foo() 1 end
p foo # => 1
# the toplevel default is private
p self.foo # => private method `foo' called for #<Object:0x401c83b0> (NoMethodError)
def bar() 2 end
public :bar # visibility changed (all access allowed)
p bar # => 2
p self.ba... -
Module
# public(*name) -> self (6107.0) -
メソッドを public に設定します。
...メソッドを public に設定します。
引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドをどんな形式でも呼び出せるように(public)設定します。
引数が与えられた時には引数によって指定......ッドを public に設
定します。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@raise NameError 存在しないメソッド名を指定した場合に発生します。
//emlist[例][ruby]{
d......ef foo() 1 end
p foo # => 1
# the toplevel default is private
p self.foo # => private method `foo' called for #<Object:0x401c83b0> (NoMethodError)
def bar() 2 end
public :bar # visibility changed (all access allowed)
p bar # => 2
p self.bar # => 2
//}... -
Module
# public(name) -> String | Symbol (6107.0) -
メソッドを public に設定します。
...メソッドを public に設定します。
引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドをどんな形式でも呼び出せるように(public)設定します。
引数が与えられた時には引数によって指定......されたメソッドを public に設
定します。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameErr......//emlist[例][ruby]{
def foo() 1 end
p foo # => 1
# the toplevel default is private
p self.foo # => private method `foo' called for #<Object:0x401c83b0> (NoMethodError)
def bar() 2 end
public :bar # visibility changed (all access allowed)
p bar # => 2
p self.ba... -
Module
# public(names) -> Array (6107.0) -
メソッドを public に設定します。
...メソッドを public に設定します。
引数なしのときは今後このクラスまたはモジュール定義内で新規に定義さ
れるメソッドをどんな形式でも呼び出せるように(public)設定します。
引数が与えられた時には引数によって指定......されたメソッドを public に設
定します。
可視性については d:spec/def#limit を参照して下さい。
@param name 0 個以上の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
@raise NameErr......//emlist[例][ruby]{
def foo() 1 end
p foo # => 1
# the toplevel default is private
p self.foo # => private method `foo' called for #<Object:0x401c83b0> (NoMethodError)
def bar() 2 end
public :bar # visibility changed (all access allowed)
p bar # => 2
p self.ba... -
RDoc
:: Parser :: Simple # scan -> RDoc :: TopLevel (3224.0) -
自身の持つ RDoc::TopLevel のコメントとしてファイルの内容を解析し ます。
...自身の持つ RDoc::TopLevel のコメントとしてファイルの内容を解析し
ます。
@return RDoc::TopLevel オブジェクトを返します。... -
RDoc
:: Parser :: ChangeLog # scan -> RDoc :: TopLevel (3208.0) -
ChangeLog ファイルを解析します。
...ChangeLog ファイルを解析します。
@return RDoc::TopLevel オブジェクトを返します。... -
Kernel
# xmp(exps , bind = nil) -> XMP (3107.0) -
引数 exps で指定されたRuby のソースコードとその実行結果を、標準出力に行 ごとに交互に表示します。
...ます。
@param bind Binding オブジェクトを指定します。省略した場合は、最
後に実行した XMP#puts、Kernel#xmp の
Binding を使用します。まだ何も実行していない場合は
Object::TOPLEVEL_BINDING を使用します。...