るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.016秒)
トップページ > クエリ:attr_reader[x] > 種類:特異メソッド[x]

別のキーワード

  1. module attr
  2. net/imap attr
  3. _builtin attr
  4. rdoc attr_modifiers
  5. etc sc_thread_attr_stackaddr

ライブラリ

クラス

キーワード

検索結果

ERB.new(str, safe_level=NOT_GIVEN, trim_mode=NOT_GIVEN, eoutvar=NOT_GIVEN, trim_mode: nil, eoutvar: '_erbout') -> ERB (7.0)

eRubyスクリプト から ERB オブジェクトを生成して返します。

...PRODUCT = { :name => "Chicken Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }

attr_reader
:product, :price

def initialize( product = "", price = "" )
@product = product
@price = price
end

def build
b = binding...

ERB.new(str, safe_level=nil, trim_mode=nil, eoutvar='_erbout') -> ERB (7.0)

eRubyスクリプト から ERB オブジェクトを生成して返します。

...PRODUCT = { :name => "Chicken Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }

attr_reader
:product, :price

def initialize( product = "", price = "" )
@product = product
@price = price
end

def build
b = binding...

ERB.new(str, trim_mode: nil, eoutvar: '_erbout') -> ERB (7.0)

eRubyスクリプト から ERB オブジェクトを生成して返します。

...PRODUCT = { :name => "Chicken Fried Steak",
:desc => "A well messages pattie, breaded and fried.",
:cost => 9.95 }

attr_reader
:product, :price

def initialize( product = "", price = "" )
@product = product
@price = price
end

def build
b = binding...

Object.yaml_tag(tag) -> () (7.0)

クラスと tag の間を関連付けます。

...象のクラスに関連付けるタグの文字列

=== Example
require 'psych'

class Foo
def initialize(x)
@x = x
end

attr_reader
:x
end

# Dumps Ruby object normally
p Psych.dump(Foo.new(3))
# =>
# --- !ruby/object:Foo
# x: 3

# Registers tag with...