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