Skip to content

Commit

Permalink
Enum#to_h (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagab authored Dec 5, 2024
1 parent 8da5d29 commit d816911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/literal/enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ def to_proc
method(:coerce).to_proc
end

def to_h(*args)
@values.dup
def to_h(...)
@values.to_h(...)
end
end

Expand Down

0 comments on commit d816911

Please sign in to comment.