Sha256: 63c310e1010e72cc4a98ff8bc88bbbed9e9610492a347ce35aeacf44e3b7bbde

Contents?: true

Size: 220 Bytes

Versions: 4

Compression:

Stored size: 220 Bytes

Contents

module JSONSelect::Ast::CombinationSelector

  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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
json_select-0.1.4 lib/json_select/ast/combination_selector.rb
json_select-0.1.3 lib/json_select/ast/combination_selector.rb
json_select-0.1.2 lib/json_select/ast/combination_selector.rb
json_select-0.1.1 lib/json_select/ast/combination_selector.rb