method

new

v1_9_3_125 - Show latest stable - Class: BasicObject
new()
public

Not documented

1Note

BasicObject.new

botp ยท Apr 24, 2012

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 => #BasicObject:0x0000000267a0a0