Sha256: 3cd2946ea872bd9075abc2b70ae2e44431ae4f6183b081e618cdcf54ffc224ed
Contents?: true
Size: 568 Bytes
Versions: 58
Compression:
Stored size: 568 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
58 entries across 58 versions & 1 rubygems