class Hotdog::Expression::RegexpTagvalueNode

Public Class Methods

new(tagvalue, separator=nil, options={}) click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1141
def initialize(tagvalue, separator=nil, options={})
  case tagvalue
  when /\A\/(.*)\/\z/
    tagvalue = $1
  end
  super(nil, tagvalue.to_s, separator, options)
end

Public Instance Methods

condition(options={}) click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1149
def condition(options={})
  "hosts.name REGEXP ? OR tags.value REGEXP ?"
end
condition_tables(options={}) click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1153
def condition_tables(options={})
  [:hosts, :tags]
end
condition_values(options={}) click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1157
def condition_values(options={})
  [tagvalue, tagvalue]
end