Method: Scimitar::Lists::QueryParser#tree
- Defined in:
- app/models/scimitar/lists/query_parser.rb
#tree ⇒ Object
Transform the RPN stack into a tree, returning the result. A new tree is created each time, so you can mutate the result if need be.
See #parse for more information.
170 171 172 173 |
# File 'app/models/scimitar/lists/query_parser.rb', line 170 def tree @stack = @rpn.clone() self.get_tree() end |