Class: Immutabler::DSL::EnumAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/immutabler/dsl/enum_attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/immutabler/dsl/enum_attribute.rb', line 4

def name
  @name
end