Class: Immutabler::DSL::Enum

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



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

def attributes
  @attributes
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end