Method: OpenStruct#to_h

Defined in:
lib/ostruct.rb,
lib/ostruct.rb

#to_h(&block) ⇒ Object



182
183
184
185
186
187
188
# File 'lib/ostruct.rb', line 182

def to_h(&block)
  if block
    @table.to_h(&block)
  else
    @table.dup
  end
end