Module: NQL::Syntax::Primary3
- Defined in:
- lib/nql/grammar.rb
Instance Method Summary collapse
Instance Method Details
#detect_node ⇒ Object
178 179 180 |
# File 'lib/nql/grammar.rb', line 178 def detect_node self.send %w(comparison expression).detect { |m| self.respond_to? m } end |
#is_node?(node_type) ⇒ Boolean
182 183 184 |
# File 'lib/nql/grammar.rb', line 182 def is_node?(node_type) detect_node.is_node?(node_type) end |
#to_ransack ⇒ Object
174 175 176 |
# File 'lib/nql/grammar.rb', line 174 def to_ransack detect_node.to_ransack end |