Class: Ice::EcoTemplate::Context

Inherits:
Hash show all
Defined in:
lib/ice/eco_template/context.rb

Instance Method Summary collapse

Methods inherited from Hash

#to_ice

Constructor Details

#initialize(hash) ⇒ Context

Returns a new instance of Context.



5
6
7
8
9
10
11
12
# File 'lib/ice/eco_template/context.rb', line 5

def initialize(hash)
  add_routes
  add_links
  add_nav_bar
  hash.each_pair do |key, value|
    self[key] = value.to_ice
  end
end