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