Methods

Class/Module Index [+]

Quicksearch

Mongoid::Extensions::TrueClass::Equality

Adds equality hooks for true values.

Public Instance Methods

is_a?(other) click to toggle source

Is the passed value a boolean?

@example Is the value a boolean type?

true.is_a?(Boolean)

@param [ Class ] other The class to check.

@return [ true, false ] If the other is a boolean.

@since 1.0.0

# File lib/mongoid/extensions/true_class/equality.rb, line 18
def is_a?(other)
  return true if other.name == "Boolean"
  super(other)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.