Class: Hotdog::Commands::Search::RegexpTagNameNode

Inherits:
RegexpExpressionNode show all
Defined in:
lib/hotdog/commands/search.rb

Instance Attribute Summary

Attributes inherited from TagExpressionNode

#attribute, #identifier, #separator

Instance Method Summary collapse

Methods inherited from RegexpExpressionNode

#dump

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.



1280
1281
1282
# File 'lib/hotdog/commands/search.rb', line 1280

def initialize(identifier, separator=nil)
  super(identifier, nil, separator)
end

Instance Method Details

#condition(options = {}) ⇒ Object



1284
1285
1286
# File 'lib/hotdog/commands/search.rb', line 1284

def condition(options={})
  "tags.name REGEXP ?"
end

#condition_tables(options = {}) ⇒ Object



1288
1289
1290
# File 'lib/hotdog/commands/search.rb', line 1288

def condition_tables(options={})
  [:tags]
end

#condition_values(options = {}) ⇒ Object



1292
1293
1294
# File 'lib/hotdog/commands/search.rb', line 1292

def condition_values(options={})
  [identifier]
end