Sha256: c769131e3f582593c3c8760752646d40069c9cf79627001b85d8b6cd2b8cb53f

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

module Vedeu

  # Represent a boolean object.
  #
  # @api private
  #
  class Boolean

    # @param value [void]
    # @return [Vedeu::Boolean]
    def initialize(value = nil)
      @value = value
    end

    # @return [Boolean]
    def false?
      value.nil? || value == false
    end

    # @return [Boolean]
    def true?
      return false if false?

      true
    end

    private

    # @!attribute [r] value
    # @return [void]
    attr_reader :value

  end # Boolean

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.8.0 lib/vedeu/boolean.rb