Object
# File lib/chef_zero/solr/query/regexpable_query.rb, line 5 def initialize(regexp_string, literal_string) @regexp_string = regexp_string # Surround the regexp with word boundaries @regexp = Regexp.new("(^|#{NON_WORD_CHARACTER})#{regexp_string}($|#{NON_WORD_CHARACTER})", true) @literal_string = literal_string end
Generated with the Darkfish Rdoc Generator 2.