Class: Mozha::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/mozha/scope.rb

Instance Method Summary collapse

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



12
13
14
# File 'lib/mozha/scope.rb', line 12

def print(key, value)
   "#{key} - #{value}"
end