Sha256: 8c72276f14099cc2126aaf9ecf4c8fb8bfd23e4539988c5486b210ea25aa1aee
Contents?: true
Size: 577 Bytes
Versions: 55
Compression:
Stored size: 577 Bytes
Contents
# The true?/false? predicates are convience methods since if ..reactive_value.. does # not correctly evaluate. The reason for this is that ruby currently does not allow # anything besides nil and false to be falsy. class Object def true? true end def false? false end end class FalseClass def true? false end def false? true end end class NilClass def true? false end def false? true end end # Opal only has a single class for true/false class Boolean def true? self end def false? self end end
Version data entries
55 entries across 55 versions & 1 rubygems