Class: Hotdog::Commands::Search::RegexpTagNameNode
- Inherits:
-
RegexpExpressionNode
- Object
- ExpressionNode
- TagExpressionNode
- RegexpExpressionNode
- Hotdog::Commands::Search::RegexpTagNameNode
- Defined in:
- lib/hotdog/commands/search.rb
Instance Attribute Summary
Attributes inherited from TagExpressionNode
#attribute, #identifier, #separator
Instance Method Summary collapse
- #condition(options = {}) ⇒ Object
- #condition_tables(options = {}) ⇒ Object
- #condition_values(options = {}) ⇒ Object
-
#initialize(identifier, separator = nil) ⇒ RegexpTagNameNode
constructor
A new instance of RegexpTagNameNode.
Methods inherited from RegexpExpressionNode
Methods inherited from TagExpressionNode
#==, #attribute?, #dump, #evaluate, #identifier?, #maybe_fallback, #maybe_glob, #maybe_query, #maybe_query_without_condition, #optimize, #reload, #separator?, #to_glob
Methods inherited from ExpressionNode
#dump, #evaluate, #intermediates, #leafs, #optimize
Constructor Details
#initialize(identifier, separator = nil) ⇒ RegexpTagNameNode
Returns a new instance of RegexpTagNameNode.
1312 1313 1314 |
# File 'lib/hotdog/commands/search.rb', line 1312 def initialize(identifier, separator=nil) super(identifier, nil, separator) end |
Instance Method Details
#condition(options = {}) ⇒ Object
1316 1317 1318 |
# File 'lib/hotdog/commands/search.rb', line 1316 def condition(={}) "tags.name REGEXP ?" end |
#condition_tables(options = {}) ⇒ Object
1320 1321 1322 |
# File 'lib/hotdog/commands/search.rb', line 1320 def condition_tables(={}) [:tags] end |
#condition_values(options = {}) ⇒ Object
1324 1325 1326 |
# File 'lib/hotdog/commands/search.rb', line 1324 def condition_values(={}) [identifier] end |