Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created May 25, 2016 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/711f3f37fb45eec799d17267302a0eaf to your computer and use it in GitHub Desktop.
Save anonymous/711f3f37fb45eec799d17267302a0eaf to your computer and use it in GitHub Desktop.
[120] pry(main)> os = OpenStruct.new(foo: 'bar')
=> #<OpenStruct foo="bar">
[121] pry(main)> os.to_json
=> "{\"table\":{\"foo\":\"bar\"}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment