Class: Cubic::Render
Overview
Render template is responsible for serving up files from the views directory.
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(params, block) ⇒ Render
constructor
A new instance of Render.
Methods included from Logable
Constructor Details
#initialize(params, block) ⇒ Render
Returns a new instance of Render.
10 11 12 13 |
# File 'lib/cubic/render.rb', line 10 def initialize(params, block) @params = params instance_exec(&block) end |
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
7 8 9 |
# File 'lib/cubic/render.rb', line 7 def params @params end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
8 9 10 |
# File 'lib/cubic/render.rb', line 8 def template @template end |