Sha256: 8027cb4f98d6fc731d74441cc116a41c0d7ff01b02f8bcf03b2b05f8ca8e6f83
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
class Boolean `def._isBoolean = true` def &(other) `(#{self} == true) ? (other !== false && other !== nil) : false` end def |(other) `(#{self} == true) ? true : (other !== false && other !== nil)` end def ^(other) `(#{self} == true) ? (other === false || other === nil) : (other !== false && other !== nil)` end def ==(other) `(#{self} == true) === other.valueOf()` end def as_json self end alias singleton_class class def to_json `(#{self} == true) ? 'true' : 'false'` end def to_s `(#{self} == true) ? 'true' : 'false'` end end TrueClass = Boolean FalseClass = Boolean
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.44 | opal/opal/boolean.rb |