class OpenStruct

Public Instance Methods

to_hash() click to toggle source

Gets the open struct hash.

Returns: Hash

# File lib/extra_lib/core_ext/openstruct.rb, line 8
def to_hash
        @table
end
to_yaml(*args) click to toggle source

Get the YAML representation of the struct.

Returns: YAML string

# File lib/extra_lib/core_ext/openstruct.rb, line 16
def to_yaml(*args)
        require 'yaml'
        to_hash.to_yaml(*args)
end