Sha256: a88be6230e10ff1c41de68ce9c3d56c87b15aab4a78f0bc5ea5f6a18a6e355f4

Contents?: true

Size: 258 Bytes

Versions: 1

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literal: true

module Boolean2
  VERSION = '1.0.1'

  def self.new(object)
    object.to_boolean2
  end
end

class TrueClass
  include Boolean2
end

class FalseClass
  include Boolean2
end

class Object
  def to_boolean2
    !!self
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boolean2-1.0.1 lib/boolean2.rb