Module: DeviceAtlas::BooleanType

Included in:
FalseClass, TrueClass
Defined in:
lib/deviceatlas.rb

Instance Method Summary collapse

Instance Method Details

#compare_values(others, operator) ⇒ Boolean

Compare two boolean object based on an operator.

Parameters:

  • others (Boolean)
  • operator (Symbol)

Returns:

  • (Boolean)

    true if two objects are equals, false otherwise

#to_boolBoolean

Convert a boolean to boolean.

Returns:

  • (Boolean)