method
new_ostruct_member!
v2_6_3 -
Show latest stable
- Class:
OpenStruct
new_ostruct_member!(name)private
Used internally to defined properties on the OpenStruct. It does this by using the metaprogramming function define_singleton_method for both the getter method and the setter method.