lib/blobject.rb in blobject-0.3.2 vs lib/blobject.rb in blobject-0.3.3
- old
+ new
@@ -126,17 +126,16 @@
__visit_subtree__ { |name, node| node.freeze }
@hash.freeze
super
end
- def as_json
-
+ def as_json *args
+ return hash.as_json(*args) if hash.respond_to? :as_json
to_hash
end
- def to_json
-
- as_json.to_json
+ def to_json *args
+ as_json.to_json *args
end
def as_yaml
to_hash
\ No newline at end of file