summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKouhei Yanagita <yanagi@shakenbu.org>2016-08-30 10:43:01 +0900
committerKouhei Yanagita <yanagi@shakenbu.org>2016-08-30 10:43:01 +0900
commit05485253d0945177e5b282235f9f00ba10eef8f5 (patch)
treef4c0f3314c064c2cd92a2bb7e4bceb5adda57bda /lib
parent7347860b1dc3bcb0d68c1ee7e6207cd7ea97b806 (diff)
downloadjson-05485253d0945177e5b282235f9f00ba10eef8f5.tar.gz
Correct documentation of OpenStruct.json_create
Diffstat (limited to 'lib')
-rw-r--r--lib/json/add/ostruct.rb2
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