Module: JSONSelect::Ast::CombinationSelector
- Defined in:
- lib/json_select/ast/combination_selector.rb
Instance Method Summary collapse
Instance Method Details
#to_ast ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/json_select/ast/combination_selector.rb', line 3 def to_ast ast = [a.to_ast] b.elements.each do |comb| ast.push(:>) if comb.c.text_value.strip == '>' ast.push(comb.d.to_ast) end ast end |