Skip to content

Commit

Permalink
Support predicate properties in Literal enums
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Dec 10, 2024
1 parent 758fef1 commit 8ad68fe
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 @@ -10,8 +10,8 @@ class << self

def values = @values.keys

def prop(name, type, kind = :keyword, reader: :public, default: nil)
super(name, type, kind, reader:, writer: false, default:)
def prop(name, type, kind = :keyword, reader: :public, predicate: false, default: nil)
super(name, type, kind, reader:, writer: false, predicate:, default:)
end

def inherited(subclass)
Expand Down

0 comments on commit 8ad68fe

Please sign in to comment.