Skip to content

Commit

Permalink
Add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
david942j committed Oct 4, 2024
1 parent 5078538 commit 1e67e31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/one_gadget/gadget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ def to_obj
}
end

# To have this class can be serialized in JSON.
# @return [String]
def to_json(*)
to_obj.to_json
end
Expand Down

0 comments on commit 1e67e31

Please sign in to comment.