Class: Walrus::Grammar::SetDirective

Inherits:
Directive
  • Object
show all
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 options = {}
  "set_value(%s, instance_eval { %s }) # Set directive \n" %
    [ @placeholder.to_s.dump, @expression.compile ]
end