Module: NQL::Syntax::Primary2
- Defined in:
- lib/nql/grammar.rb
Instance Method Summary collapse
Instance Method Details
#detect_node ⇒ Object
163 164 165 |
# File 'lib/nql/grammar.rb', line 163 def detect_node self.send %w(comparison expression).detect { |m| self.respond_to? m } end |
#is_node?(node_type) ⇒ Boolean
167 168 169 |
# File 'lib/nql/grammar.rb', line 167 def is_node?(node_type) detect_node.is_node?(node_type) end |
#to_ransack ⇒ Object
159 160 161 |
# File 'lib/nql/grammar.rb', line 159 def to_ransack detect_node.to_ransack end |