Method: Vedeu::Common#boolean?
- Defined in:
- lib/vedeu/common.rb
#boolean?(value) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a boolean indicating whether the value is a Boolean.
43 44 45 |
# File 'lib/vedeu/common.rb', line 43 def boolean?(value) value.is_a?(TrueClass) || value.is_a?(FalseClass) end |