Sha256: 31a17cd816f3e1e92ef673587be883727a47bb55b1f5750991761ea8be4b49d4
Contents?: true
Size: 610 Bytes
Versions: 4
Compression:
Stored size: 610 Bytes
Contents
class Boolean < `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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.41 | opal/opal/boolean.rb |
opal-0.3.40 | lib/assets/javascripts/opal/boolean.rb |
opal-0.3.39 | lib/assets/javascripts/opal/boolean.rb |
opal-0.3.38 | lib/assets/javascripts/opal/boolean.rb |