Class: Walrus::Grammar::SetDirective
- Inherits:
-
Directive
- Object
- Directive
- Walrus::Grammar::SetDirective
- Defined in:
- lib/walrus/grammar/set_directive.rb
Instance Method Summary collapse
Instance Method Details
#compile(options = {}) ⇒ Object
28 29 30 31 |
# File 'lib/walrus/grammar/set_directive.rb', line 28 def compile = {} "set_value(%s, instance_eval { %s }) # Set directive \n" % [ @placeholder.to_s.dump, @expression.compile ] end |