Sha256: fdeb64e5d73e4c8be42afd2b0a04839decc56be1c2425566bca6bc3e0204ef4e
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
class NilClass def to_i 0 end def to_f 0.0 end def to_s "" end def to_a [] end def inspect "nil" end def nil? true end def &(other) false end def |(other) `return other.$r ? Qtrue : Qfalse;` end def ^(other) `return other.$r ? Qtrue : Qfalse;` end end NIL = nil
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.1 | gems/core/lib/core/nil_class.rb |
opal-0.3.0 | gems/core/lib/core/nil_class.rb |