Class: ShowFor::Builder
- Inherits:
-
Object
- Object
- ShowFor::Builder
- Includes:
- Association, Attribute, Content, Label
- Defined in:
- lib/show_for/builder.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(object, template) ⇒ Builder
constructor
A new instance of Builder.
Methods included from Label
Methods included from Content
Methods included from Association
Methods included from Attribute
#attribute, #attributes, #value
Constructor Details
#initialize(object, template) ⇒ Builder
Returns a new instance of Builder.
15 16 17 |
# File 'lib/show_for/builder.rb', line 15 def initialize(object, template) @object, @template = object, template end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
13 14 15 |
# File 'lib/show_for/builder.rb', line 13 def object @object end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
13 14 15 |
# File 'lib/show_for/builder.rb', line 13 def template @template end |