Sha256: 2fad25e25f089ca705c158e226dba0fad8e6ecbad336f56fa983f13eae9ec5a1

Contents?: true

Size: 205 Bytes

Versions: 16

Compression:

Stored size: 205 Bytes

Contents

class <%= class_name %> < ClassyEnum::Base
  enum_classes <%= values.map {|a| ":#{a}"}.join(", ") %>
end
<% values.each do |arg| %>
class <%= class_name + arg.camelize %> < <%= class_name %>
end
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
classy_enum-2.1.0 lib/generators/classy_enum/templates/enum.rb
classy_enum-2.0.3 lib/generators/classy_enum/templates/enum.rb
classy_enum-2.0.2 lib/generators/classy_enum/templates/enum.rb
classy_enum-2.0.1 lib/generators/classy_enum/templates/enum.rb
classy_enum-1.4.0 lib/generators/classy_enum/templates/enum.rb
classy_enum-1.3.2 lib/generators/classy_enum/templates/enum.rb
classy_enum-1.3.1 lib/generators/classy_enum/templates/enum.rb
classy_enum-1.3.0 lib/generators/classy_enum/templates/enum.rb
classy_enum-1.2.0 lib/generators/classy_enum/templates/enum.rb
classy_enum-1.1.0 lib/generators/classy_enum/templates/enum.rb
classy_enum-1.0.0 lib/generators/classy_enum/templates/enum.rb
classy_enum-0.9.1 lib/generators/classy_enum/templates/enum.rb
classy_enum-0.8.1 lib/generators/classy_enum/templates/enum.rb
classy_enum-0.8.0 lib/generators/classy_enum/templates/enum.rb
classy_enum-0.7.1 lib/generators/classy_enum/templates/enum.rb
classy_enum-0.7.0 lib/generators/classy_enum/templates/enum.rb