Class: Mozha::Scope
- Inherits:
-
Object
- Object
- Mozha::Scope
- Defined in:
- lib/mozha/scope.rb
Instance Method Summary collapse
-
#initialize(context = {}) ⇒ Scope
constructor
A new instance of Scope.
- #print(key, value) ⇒ Object
Constructor Details
#initialize(context = {}) ⇒ Scope
Returns a new instance of Scope.
6 7 8 9 10 |
# File 'lib/mozha/scope.rb', line 6 def initialize(context = {}) context.each do |key, value| print(key, value) end end |
Instance Method Details
#print(key, value) ⇒ Object
12 13 14 |
# File 'lib/mozha/scope.rb', line 12 def print(key, value) "#{key} - #{value}" end |