class Hotdog::Expression::RegexpTagNode
Public Class Methods
new(tagname, tagvalue, separator=nil, options={})
click to toggle source
Calls superclass method
Hotdog::Expression::TagExpressionNode::new
# File lib/hotdog/expression/semantics.rb, line 1093 def initialize(tagname, tagvalue, separator=nil, options={}) case tagname when /\A\/(.*)\/\z/ tagname = $1 end case tagvalue when /\A\/(.*)\/\z/ tagvalue = $1 end super(tagname, tagvalue, separator, options) end
Public Instance Methods
condition(options={})
click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1105 def condition(options={}) "tags.name REGEXP ? AND tags.value REGEXP ?" end
condition_tables(options={})
click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1109 def condition_tables(options={}) [:tags] end
condition_values(options={})
click to toggle source
# File lib/hotdog/expression/semantics.rb, line 1113 def condition_values(options={}) [tagname, tagvalue] end