Sha256: e4e2dcb875be79a946d36df088cf917bf6e4432d54d12f9e308d715b688b9e42
Contents?: true
Size: 608 Bytes
Versions: 188
Compression:
Stored size: 608 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Extensions #:nodoc: module FalseClass #:nodoc: # Adds equality hooks for false values. module Equality # Is the passed value a boolean? # # @example Is the value a boolean type? # false.is_a?(Boolean) # # @param [ Class ] other The class to check. # # @return [ true, false ] If the other is a boolean. # # @since 1.0.0 def is_a?(other) return true if other.name == "Boolean" super(other) end end end end end
Version data entries
188 entries across 96 versions & 4 rubygems