Class: Object

Inherits:
BasicObject
Defined in:
lib/lib/utils.rb

Instance Method Summary collapse

Instance Method Details

#boolean? ⇒ Boolean

Self test Boolean class.

Returns:

  • (Boolean) —

    boolean



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.

Returns:

  • (Boolean) —

    boolean



262
263
264
# File 'lib/lib/utils.rb', line 262

def string?
  self.is_a?(String)
end

#symbol? ⇒ Boolean

Self test Symbol class.

Returns:

  • (Boolean) —

    boolean



256
257
258
# File 'lib/lib/utils.rb', line 256

def symbol?
  self.is_a?(Symbol)
end