Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/lib/utils.rb
Instance Method Summary collapse
-
#boolean? ⇒ Boolean
Self test Boolean class.
-
#string? ⇒ Boolean
Self test String class.
-
#symbol? ⇒ Boolean
Self test Symbol class.
Instance Method Details
#boolean? ⇒ Boolean
Self test Boolean class.
250 251 252 |
# File 'lib/lib/utils.rb', line 250 def boolean? self.is_a?(TrueClass) || self.is_a?(FalseClass) end |
#string? ⇒ Boolean
Self test String class.
262 263 264 |
# File 'lib/lib/utils.rb', line 262 def string? self.is_a?(String) end |
#symbol? ⇒ Boolean
Self test Symbol class.
256 257 258 |
# File 'lib/lib/utils.rb', line 256 def symbol? self.is_a?(Symbol) end |