method
delete_field
Ruby latest stable (v1_9_3_392)
-
0 notes -
Class: OpenStruct
delete_field(name)
public
Remove the named field from the object. Returns the value that the field contained if it was defined.
require 'ostruct' person = OpenStruct.new('name' => 'John Smith', 'age' => 70) person.delete_field('name') # => 'John Smith'


