Class: Mjml::Scope
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Mjml::Scope
- Defined in:
- lib/mjml/scope.rb
Instance Method Summary collapse
-
#initialize(target, args) ⇒ Scope
constructor
A new instance of Scope.
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 |