class Hotdog::Expression::RegexpHostNode

Public Class Methods

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

Public Instance Methods

condition(options={}) click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1079
def condition(options={})
  "hosts.name REGEXP ?"
end
condition_tables(options={}) click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1083
def condition_tables(options={})
  [:hosts]
end
condition_values(options={}) click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1087
def condition_values(options={})
  [tagvalue]
end