Module: Liquidscript::Compiler::ICR::Directives::ClassMethods
- Defined in:
- lib/liquidscript/compiler/icr/directives.rb
Instance Method Summary collapse
Instance Method Details
#define_directive(name, body) ⇒ Object
11 12 13 |
# File 'lib/liquidscript/compiler/icr/directives.rb', line 11 def define_directive(name, body) directives[name] = Base::Callable.new(nil, body, "") end |
#directives ⇒ Object
7 8 9 |
# File 'lib/liquidscript/compiler/icr/directives.rb', line 7 def directives @_directives ||= {} end |