Class: ShowFor::Builder

Inherits:
Object
  • Object
show all
Includes:
Association, Attribute, Content, Label
Defined in:
lib/show_for/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Label

#label

Methods included from Content

#content

Methods included from Association

#association, #attribute

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

#objectObject (readonly)

Returns the value of attribute object.



13
14
15
# File 'lib/show_for/builder.rb', line 13

def object
  @object
end

#templateObject (readonly)

Returns the value of attribute template.



13
14
15
# File 'lib/show_for/builder.rb', line 13

def template
  @template
end