lib/chars/extensions/string.rb in chars-0.2.3 vs lib/chars/extensions/string.rb in chars-0.2.4
- old
+ new
@@ -7,11 +7,12 @@
#
# @return [Boolean]
# Specifies whether the String belongs to the decimal-digit character
# set.
#
- # @see Chars.numeric
+ # @see Chars::NUMERIC
+ # @see Chars::CharSet#===
#
def numeric?
Chars::NUMERIC === self
end
@@ -20,11 +21,12 @@
#
# @return [Boolean]
# Specifies whether the String belongs to the octal-digit character
# set.
#
- # @see Chars.octal
+ # @see Chars::OCTAL
+ # @see Chars::CharSet#===
#
def octal?
Chars::OCTAL === self
end
@@ -34,11 +36,12 @@
#
# @return [Boolean]
# Specifies whether the String belongs to the upper-case hexadecimal
# character set.
#
- # @see Chars.uppercase_hexadecimal
+ # @see Chars::UPPERCASE_HEXADECIMAL
+ # @see Chars::CharSet#===
#
def uppercase_hex?
Chars::UPPERCASE_HEXADECIMAL === self
end
@@ -48,11 +51,12 @@
#
# @return [Boolean]
# Specifies whether the String belongs to the lower-case hexadecimal
# character set.
#
- # @see Chars.lowercase_hexadecimal
+ # @see Chars::LOWERCASE_HEXADECIMAL
+ # @see Chars::CharSet#===
#
def lowercase_hex?
Chars::LOWERCASE_HEXADECIMAL === self
end
@@ -60,11 +64,12 @@
# Determines whether the String belongs to the hexadecimal character set.
#
# @return [Boolean]
# Specifies whether the String belongs to the hexadecimal character set.
#
- # @see Chars.hexadecimal
+ # @see Chars::HEXADECIMAL
+ # @see Chars::CharSet#===
#
def hex?
Chars::HEXADECIMAL === self
end
@@ -74,11 +79,12 @@
#
# @return [Boolean]
# Specifies whether the String belongs to the upper-case alphabetic
# character set.
#
- # @see Chars.uppercase_alpha
+ # @see Chars::UPPERCASE_ALPHA
+ # @see Chars::CharSet#===
#
def uppercase_alpha?
Chars::UPPERCASE_ALPHA === self
end
@@ -88,11 +94,12 @@
#
# @return [Boolean]
# Specifies whether the String belongs to the lower-case alphabetic
# character set.
#
- # @see Chars.lowercase_alpha
+ # @see Chars::LOWERCASE_ALPHA
+ # @see Chars::CharSet#===
#
def lowercase_alpha?
Chars::LOWERCASE_ALPHA === self
end
@@ -100,11 +107,12 @@
# Determines whether the String belongs to the alphabetic character set.
#
# @return [Boolean]
# Specifies whether the String belongs to the alphabetic character set.
#
- # @see Chars.alpha
+ # @see Chars::ALPHA
+ # @see Chars::CharSet#===
#
def alpha?
Chars::ALPHA === self
end
@@ -114,11 +122,12 @@
#
# @return [Boolean]
# Specifies whether the String belongs to the alpha-numeric character
# set.
#
- # @see Chars.alpha_numeric
+ # @see Chars::ALPHA_NUMERIC
+ # @see Chars::CharSet#===
#
def alpha_numeric?
Chars::ALPHA_NUMERIC === self
end
@@ -126,11 +135,12 @@
# Determines whether the String belongs to the punctuation character set.
#
# @return [Boolean]
# Specifies whether the String belongs to the punctuation character set.
#
- # @see Chars.punctuation
+ # @see Chars::PUNCTUATION
+ # @see Chars::CharSet#===
#
def punctuation?
Chars::PUNCTUATION === self
end
@@ -138,11 +148,12 @@
# Determines whether the String belongs to the symbolic character set.
#
# @return [Boolean]
# Specifies whether the String belongs to the symbolic character set.
#
- # @see Chars.symbols
+ # @see Chars::SYMBOLS
+ # @see Chars::CharSet#===
#
def symbolic?
Chars::SYMBOLS === self
end
@@ -150,11 +161,12 @@
# Determines whether the String belongs to the white-space character set.
#
# @return [Boolean]
# Specifies whether the String belongs to the white-space character set.
#
- # @see Chars.space
+ # @see Chars::SPACE
+ # @see Chars::CharSet#===
#
def space?
Chars::SPACE === self
end
@@ -162,11 +174,12 @@
# Determines whether the String belongs to the visible character set.
#
# @return [Boolean]
# Specifies whether the String belongs to the visible character set.
#
- # @see Chars.visible
+ # @see Chars::VISIBLE
+ # @see Chars::CharSet#===
#
def visible?
Chars::VISIBLE === self
end
@@ -174,11 +187,12 @@
# Determines whether the String belongs to the printable character set.
#
# @return [Boolean]
# Specifies whether the String belongs to the printable character set.
#
- # @see Chars.printable
+ # @see Chars::PRINTABLE
+ # @see Chars::CharSet#===
#
def printable?
Chars::PRINTABLE === self
end
@@ -188,11 +202,12 @@
#
# @return [Boolean]
# Specifies whether the String belongs to the control-character
# character set.
#
- # @see Chars.control
+ # @see Chars::CONTROL
+ # @see Chars::CharSet#===
#
def control?
Chars::CONTROL === self
end
@@ -201,11 +216,12 @@
#
# @return [Boolean]
# Specifies whether the String belongs to the signed-ASCII character
# set.
#
- # @see Chars.signed_ascii
+ # @see Chars::SIGNED_ASCII
+ # @see Chars::CharSet#===
#
def signed_ascii?
Chars::SIGNED_ASCII === self
end
@@ -213,10 +229,11 @@
# Determines whether the String belongs to the ASCII character set.
#
# @return [Boolean]
# Specifies whether the String belongs to the ASCII character set.
#
- # @see Chars.ascii
+ # @see Chars::ASCII
+ # @see Chars::CharSet#===
#
def ascii?
Chars::ASCII === self
end