# File lib/regin/character.rb, line 39 def include?(char) if ignorecase value.downcase == char.downcase else value == char end end
Returns true if expression could be treated as a literal string.
A Character is literal is there is no quantifier attached to it.
# File lib/regin/character.rb, line 17 def literal? quantifier.nil? && !ignorecase end
# File lib/regin/character.rb, line 35 def match(char) to_regexp(true).match(char) end
# File lib/regin/character.rb, line 10 def option_names %( quantifier ) + super end
Generated with the Darkfish Rdoc Generator 2.