RubyGems Navigation menu

json_to_openstruct 0.1.0

A simple Ruby gem adding OpenStruct::parse_json and OpenStruct::parse_hash methods and reverse OpenStruct#to_hash and OpenStruct#to_json methods to (obviously) OpenStruct. It is able to parse and reconstruct nested json and hash objects as well. There is also a OpenStruct#join method adding possibility to replace values in the hash tree with the values passed as a hash in parameter (supporting accepts_nested_attributes_for format) and return it as a new hash.

Gemfile:
=

安裝:
=

版本列表:

  1. 0.1.0 December 05, 2017 (5.0 KB)

Runtime 相依性套件 (1):

json ~> 2.0

擁有者:

作者:

  • Jiri Prochazka

SHA 256 總和檢查碼:

=

總下載次數 2,394

這個版本 2,394

版本发布:

授權:

MIT

Ruby 版本需求: >= 0

相關連結: