Sha256: 225ae9db9a028f0d23c7c7fdf6e62470d9eee68b73b7cef518c04cff86d1c829

Contents?: true

Size: 228 Bytes

Versions: 1

Compression:

Stored size: 228 Bytes

Contents

module Boolean2
  VERSION = '1.0.0'

  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.0 lib/boolean2.rb