Class: Cubic::Render

Inherits:
Object
  • Object
show all
Includes:
Logable
Defined in:
lib/cubic/render.rb

Overview

Render template is responsible for serving up files from the views directory.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logable

#log

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

#paramsObject

Returns the value of attribute params.



7
8
9
# File 'lib/cubic/render.rb', line 7

def params
  @params
end

#templateObject (readonly)

Returns the value of attribute template.



8
9
10
# File 'lib/cubic/render.rb', line 8

def template
  @template
end