Module: EnumStyle::Style
- Defined in:
- lib/enum_style/style.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#enum(definitions) ⇒ Object
overwrite the enum method.
Class Method Details
.extended(receiver) ⇒ Object
13 14 15 16 17 |
# File 'lib/enum_style/style.rb', line 13 def self.extended(receiver) # receiver.class_eval do # # alias_method_chain :enum, :enum_help # end end |
Instance Method Details
#enum(definitions) ⇒ Object
overwrite the enum method
6 7 8 9 10 11 |
# File 'lib/enum_style/style.rb', line 6 def enum( definitions ) super( definitions ) definitions.each do |name, _| Helper.define_attr_style_method(self, name) end end |