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

- (Builder) initialize(object, template)



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

- (Object) template (readonly)

Returns the value of attribute template



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

def template
  @template
end