Sha256: d65ee9c3403849589db650b9ddbf0bafe912d5481bf5fcf3cf6c492a3ee04bf2
Contents?: true
Size: 977 Bytes
Versions: 6
Compression:
Stored size: 977 Bytes
Contents
# backtick_javascript: true class ::NilClass `self.$$prototype.$$meta = #{self}` class << self def allocate ::Kernel.raise ::TypeError, "allocator undefined for #{name}" end undef :new end def ! true end def &(other) false end def |(other) `other !== false && other !== nil` end def ^(other) `other !== false && other !== nil` end def ==(other) `other === nil` end def dup nil end def clone(freeze: true) nil end def inspect 'nil' end def nil? true end def singleton_class ::NilClass end def to_a [] end def to_h `new Map()` end def to_i 0 end def to_s '' end def to_c ::Complex.new(0, 0) end def rationalize(*args) ::Kernel.raise ::ArgumentError if args.length > 1 ::Kernel.Rational(0, 1) end def to_r ::Kernel.Rational(0, 1) end def instance_variables [] end alias to_f to_i end
Version data entries
6 entries across 6 versions & 1 rubygems