Class: Diddy::Context
- Inherits:
-
Object
- Object
- Diddy::Context
- Defined in:
- lib/diddy/context.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(vars) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(vars) ⇒ Context
Returns a new instance of Context.
3 4 5 |
# File 'lib/diddy/context.rb', line 3 def initialize(vars) @vars = vars end |
Instance Method Details
#[](key) ⇒ Object
7 8 9 |
# File 'lib/diddy/context.rb', line 7 def [](key) @vars[key.to_sym] end |