Skip to content

Commit 7cb5e7f

Browse files
Add Nori::StringWithAttributes#as_json
Fixes savonrb#99
1 parent 5eec90c commit 7cb5e7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: lib/nori/string_with_attributes.rb

+4
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@ class StringWithAttributes < String
33

44
attr_accessor :attributes
55

6+
def as_json
7+
to_s
8+
end
9+
610
end
711
end

0 commit comments

Comments
 (0)