# File lib/regin/character_class.rb, line 25 def bracketed? value != '.' && value !~ /^\\[dDsSwW]$/ end
# File lib/regin/character_class.rb, line 41 def include?(char) re = quantifier ? to_s.sub(/#{Regexp.escape(quantifier)}$/, '') : to_s Regexp.compile("\\A#{re}\\Z").match(char) end
Returns true if expression could be treated as a literal string.
A CharacterClass is never literal.
# File lib/regin/character_class.rb, line 21 def literal? false end
# File lib/regin/character_class.rb, line 14 def negated? negate ? true : false end
Generated with the Darkfish Rdoc Generator 2.