Sha256: 05452f601ba270473925b4c2ceb7a916df063fda3c6aab90159d358d7cb6fad8
Contents?: true
Size: 213 Bytes
Versions: 5
Compression:
Stored size: 213 Bytes
Contents
module Mjml class Scope < SimpleDelegator def initialize(target, args) super(target) args.each do |key, value| define_singleton_method key, lambda { value } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mjml-0.0.8 | lib/mjml/scope.rb |
mjml-0.0.7 | lib/mjml/scope.rb |
mjml-0.0.6 | lib/mjml/scope.rb |
mjml-0.0.5 | lib/mjml/scope.rb |
mjml-0.0.4 | lib/mjml/scope.rb |