Notes posted by botp
RSS feed
0 thanks
BasicObject.new
Instantiates a new blank object (devoid of methods). The only class method of class BasicObject. see “ri BasicObject”
eg,
> o=BasicObject.new (Object doesn’t support #inspect)
>
> o.methods NoMethodError: undefined method `methods’ for #<BasicObject:0x0000000267a0a0>
> def o.to_s > self > end
> nil
> o