diff options
author | Kouhei Yanagita <yanagi@shakenbu.org> | 2016-08-30 10:43:01 +0900 |
---|---|---|
committer | Kouhei Yanagita <yanagi@shakenbu.org> | 2016-08-30 10:43:01 +0900 |
commit | 05485253d0945177e5b282235f9f00ba10eef8f5 (patch) | |
tree | f4c0f3314c064c2cd92a2bb7e4bceb5adda57bda /lib | |
parent | 7347860b1dc3bcb0d68c1ee7e6207cd7ea97b806 (diff) | |
download | json-05485253d0945177e5b282235f9f00ba10eef8f5.tar.gz |
Correct documentation of OpenStruct.json_create
Diffstat (limited to 'lib')
-rw-r--r-- | lib/json/add/ostruct.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/json/add/ostruct.rb b/lib/json/add/ostruct.rb index 7c13910..e064c85 100644 --- a/lib/json/add/ostruct.rb +++ b/lib/json/add/ostruct.rb @@ -7,7 +7,7 @@ require 'ostruct' class OpenStruct # Deserializes JSON string by constructing new Struct object with values - # <tt>v</tt> serialized by <tt>to_json</tt>. + # <tt>t</tt> serialized by <tt>to_json</tt>. def self.json_create(object) new(object['t'] || object[:t]) end |