Class: Immutabler::DSL::EnumAttribute
- Inherits:
-
Object
- Object
- Immutabler::DSL::EnumAttribute
- Defined in:
- lib/immutabler/dsl/enum_attribute.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ EnumAttribute
constructor
A new instance of EnumAttribute.
Constructor Details
#initialize(name) ⇒ EnumAttribute
Returns a new instance of EnumAttribute.
6 7 8 |
# File 'lib/immutabler/dsl/enum_attribute.rb', line 6 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/immutabler/dsl/enum_attribute.rb', line 4 def name @name end |