Skip to content

Commit fd5b2bd

Browse files
committed
Avoid duplicate definition warnings
1 parent 54bce57 commit fd5b2bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/enum_type/enum_class.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def self.create(attributes)
1313

1414
def self.create_from_array(attributes)
1515
attributes = %i[name value] + attributes
16-
Struct.new('Enum', *attributes)
16+
Struct.new(*attributes)
1717
end
1818

1919
def self.create_from_hash(attributes)

0 commit comments

Comments
 (0)