Skip to content

Commit

Permalink
Add Nori::StringWithAttributes#as_json
Browse files Browse the repository at this point in the history
  • Loading branch information
HarlemSquirrel committed Jun 14, 2023
1 parent 5eec90c commit 7cb5e7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/nori/string_with_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ class StringWithAttributes < String

attr_accessor :attributes

def as_json
to_s
end

end
end

0 comments on commit 7cb5e7f

Please sign in to comment.