Class: Ice::EcoTemplate::Context
- Defined in:
- lib/ice/eco_template/context.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ Context
constructor
A new instance of Context.
Methods inherited from Hash
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 hash.each_pair do |key, value| self[key] = value.to_ice end end |