T
Trans
I've subclasses NilClass, but don't know how to instantiate it. Any
ideas?
class NullClass < NilClass
def inspect ; 'null' ; end
def method_missing(*args) ; self ; end
end
module Kernel
def null
NullClass.allocate #?
end
end
T.
ideas?
class NullClass < NilClass
def inspect ; 'null' ; end
def method_missing(*args) ; self ; end
end
module Kernel
def null
NullClass.allocate #?
end
end
T.