module Nuggets::Object::BooleanMixin

Public Instance Methods

boolean? → +true+ or +false+ click to toggle source
# File lib/nuggets/object/boolean_mixin.rb, line 35
def boolean?
  is_a?(::TrueClass) || is_a?(::FalseClass)
end
false?()
Alias for: negate
negate → +true+ or +false+ click to toggle source
# File lib/nuggets/object/boolean_mixin.rb, line 43
def negate
  !self
end
Also aliased as: false?
to_bool → +true+ or +false+ click to toggle source
# File lib/nuggets/object/boolean_mixin.rb, line 53
def to_bool
  !!self
end
Also aliased as: true?
true?()
Alias for: to_bool