Sha256: 8c6bde1f1fd8037b893091c25a1534e5cb46853e59379eee1ecb0d1b08f5b72d
Contents?: true
Size: 371 Bytes
Versions: 9
Compression:
Stored size: 371 Bytes
Contents
require 'enumerated_attribute' class Base enum_attr :base1, %w(^one two three four) enum_attr :inherited1, %w(^one two three four) enum_attr :inherited2, %w(^one two three four) end class Sub < Base enum_attr :sub1, %w(one ^two three four) enum_attr :inherited1, %w(one ^two three four) enum_attr :inherited2, %w(^five six seven eight) end class Sub2 < Base end
Version data entries
9 entries across 9 versions & 3 rubygems