Class: Hotdog::Expression::RegexpNode
Instance Attribute Summary
#separator, #tag_name, #tag_value
Instance Method Summary
collapse
#dump
#==, #dump, #evaluate, #maybe_fallback, #maybe_glob, #maybe_query, #maybe_query_without_condition, #optimize, #reload, #separator?, #tag_name?, #tag_value?, #to_glob
#dump, #evaluate, #optimize
Constructor Details
#initialize(tag_name, separator = nil) ⇒ RegexpNode
1116
1117
1118
|
# File 'lib/hotdog/expression/semantics.rb', line 1116
def initialize(tag_name, separator=nil)
super(tag_name, separator)
end
|
Instance Method Details
#condition(options = {}) ⇒ Object
1120
1121
1122
|
# File 'lib/hotdog/expression/semantics.rb', line 1120
def condition(options={})
"hosts.name REGEXP ? OR tags.name REGEXP ? OR tags.value REGEXP ?"
end
|
#condition_tables(options = {}) ⇒ Object
1124
1125
1126
|
# File 'lib/hotdog/expression/semantics.rb', line 1124
def condition_tables(options={})
[:hosts, :tags]
end
|
#condition_values(options = {}) ⇒ Object
1128
1129
1130
|
# File 'lib/hotdog/expression/semantics.rb', line 1128
def condition_values(options={})
[tag_name, tag_name, tag_name]
end
|