Class: EnumBehavior::Base
- Inherits:
-
Object
- Object
- EnumBehavior::Base
- Defined in:
- lib/enum_behavior/base.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(model) ⇒ Base
Returns a new instance of Base.
3 4 5 |
# File 'lib/enum_behavior/base.rb', line 3 def initialize(model) @model = model end |
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
7 8 9 |
# File 'lib/enum_behavior/base.rb', line 7 def model @model end |