Class: Mjml::Scope

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

Instance Method Summary collapse

Constructor Details

#initialize(target, args) ⇒ Scope

Returns a new instance of Scope.



4
5
6
7
8
9
10
# File 'lib/mjml/scope.rb', line 4

def initialize(target, args)
  super(target)

  args.each do |key, value|
    define_singleton_method key, lambda { value }
  end
end