Skip to content

Commit

Permalink
Literal::DataEnum.define should return the definition
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Nov 23, 2023
1 parent 78f87a3 commit 5602556
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/literal/data_enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ def inherited(subclass)
end

def define(...)
definition = new(...)
@data << new(...)
definition
end

def new(...)
Expand Down

0 comments on commit 5602556

Please sign in to comment.