lib/chars/chars.rb in chars-0.3.0 vs lib/chars/chars.rb in chars-0.3.1

- old
+ new

@@ -34,11 +34,11 @@ # The alpha-numeric character set ALPHA_NUMERIC = ALPHA | NUMERIC # The punctuation character set - PUNCTUATION = CharSet[' ', '\'', '"', '`', ',', ';', ':', '~', '-', + PUNCTUATION = CharSet['\'', '"', '`', ',', ';', ':', '~', '-', '(', ')', '[', ']', '{', '}', '.', '?', '!'] # The symbolic character set SYMBOLS = PUNCTUATION | CharSet[ '@', '#', '$', '%', '^', '&', '*', '_', '+', @@ -58,11 +58,11 @@ '(', ')', '[', ']', '{', '}', '.', '?', '!', '@', '#', '$', '%', '^', '&', '*', '_', '+', '=', '|', '\\', '<', '>', '/' ] # The set of printable characters (including spaces) - PRINTABLE = ALPHA_NUMERIC | PUNCTUATION | SYMBOLS | SPACE + PRINTABLE = ALPHA_NUMERIC | PUNCTUATION | SYMBOLS | CharSet[' '] # The control-char character set CONTROL = CharSet[0..0x1f, 0x7f] # The signed ASCII character set @@ -82,10 +82,15 @@ def self.numeric NUMERIC end # + # Alias for {numeric}. + # + # @return [CharSet] + # The decimal-digit character set. + # # @see numeric # # @since 0.3.0 # def self.digits @@ -226,9 +231,11 @@ WHITESPACE end # # The whitespace character set. + # + # @return [CharSet] # # @see #whitespace # def self.space whitespace