Method: Querylet::Tree::IfBlock#_eval
- Defined in:
- lib/querylet/tree.rb
#_eval(context) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/querylet/tree.rb', line 64 def _eval(context) if if_kind == 'if' if context.get(variable) items.map {|item| item._eval(context)}.join() end elsif if_kind == 'unless' unless context.get(variable) items.map {|item| item._eval(context)}.join() end end end |