We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54bce57 commit fd5b2bdCopy full SHA for fd5b2bd
lib/enum_type/enum_class.rb
@@ -13,7 +13,7 @@ def self.create(attributes)
13
14
def self.create_from_array(attributes)
15
attributes = %i[name value] + attributes
16
- Struct.new('Enum', *attributes)
+ Struct.new(*attributes)
17
end
18
19
def self.create_from_hash(attributes)
0 commit comments