Skip to content

Commit

Permalink
Add documentation for #to_h method
Browse files Browse the repository at this point in the history
  • Loading branch information
mico committed Oct 9, 2023
1 parent 63ce213 commit 606bf0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pubid/core/identifier/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def urn
Renderer::Urn.new(to_h).render
end

# @return [Hash] Identifier's parameters
def to_h
instance_variables.map do |var|
# XXX: temporary hack to prepare typed_stage for rendering
Expand Down

0 comments on commit 606bf0a

Please sign in to comment.