るりまサーチ

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

別のキーワード

  1. toplevel new
  2. toplevel reset
  3. context toplevel
  4. toplevel full_name
  5. toplevel file_stat

検索結果

<< < 1 2 3 4 > >>

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

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

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

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

ERB#result(b=TOPLEVEL_BINDING) -> String (102.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"
puts erb.result
# test foo
# test bar
//}
ERB を 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
//}

@see ERB#result_with_hash

ERB#run(b=TOPLEVEL_BINDING) -> nil (102.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) (102.0)

Record the file that we happen to find it in

Record the file that we happen to find it in

RDoc::Context#add_require(a_require) -> () (17.0)

自身が所属する RDoc::TopLevel オブジェクトに引数で指定した RDoc::Require を追加します。

...自身が所属する RDoc::TopLevel オブジェクトに引数で指定した
RDoc::Require を追加します。

@param a_require RDoc::Require オブジェクトを指定します。...

絞り込み条件を変える

Kernel#xmp(exps, bind = nil) -> XMP (7.0)

引数 exps で指定されたRuby のソースコードとその実行結果を、標準出力に行 ごとに交互に表示します。

...ます。

@param bind Binding オブジェクトを指定します。省略した場合は、最
後に実行した XMP#puts、Kernel#xmp の
Binding を使用します。まだ何も実行していない場合は
Object::TOPLEVEL_BINDING を使用します。...

Module#public() -> nil (7.0)

メソッドを public に設定します。

...rror 存在しないメソッド名を指定した場合に発生します。

//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...

Module#public(*name) -> Array (7.0)

メソッドを public に設定します。

...rror 存在しないメソッド名を指定した場合に発生します。

//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...

Module#public(name) -> String | Symbol (7.0)

メソッドを public に設定します。

...rror 存在しないメソッド名を指定した場合に発生します。

//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...
<< < 1 2 3 4 > >>