Module: TinyDyno::Extensions::FalseClass

Defined in:
lib/tiny_dyno/extensions/false_class.rb

Instance Method Summary collapse

Instance Method Details

#is_a?(other) ⇒ true, false

Is the passed value a boolean?

Examples:

Is the value a boolean type?

false.is_a?(Boolean)

Parameters:

  • other (Class)

    The class to check.

Returns:

  • (true, false)

    If the other is a boolean.

Since:

  • 1.0.0



16
17
18
19
20
21
# File 'lib/tiny_dyno/extensions/false_class.rb', line 16

def is_a?(other)
  if other == ::TinyDyno::Boolean || other.class == ::TinyDyno::Boolean
    return true
  end
  super(other)
end