Class: Props::RenderedTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/props_template/extensions/partial_renderer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body, layout, template) ⇒ RenderedTemplate

Returns a new instance of RenderedTemplate.



7
8
9
10
11
# File 'lib/props_template/extensions/partial_renderer.rb', line 7

def initialize(body, layout, template)
  @body = body
  @layout = layout
  @template = template
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/props_template/extensions/partial_renderer.rb', line 5

def body
  @body
end

#layoutObject (readonly)

Returns the value of attribute layout.



5
6
7
# File 'lib/props_template/extensions/partial_renderer.rb', line 5

def layout
  @layout
end

#templateObject (readonly)

Returns the value of attribute template.



5
6
7
# File 'lib/props_template/extensions/partial_renderer.rb', line 5

def template
  @template
end

Instance Method Details

#formatObject



13
14
15
# File 'lib/props_template/extensions/partial_renderer.rb', line 13

def format
  template.format
end