Class: HideAncestry::ModelManage::Base
- Inherits:
-
Object
- Object
- HideAncestry::ModelManage::Base
- Defined in:
- lib/hide_ancestry/model_manage/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#instance ⇒ Object
Returns the value of attribute instance.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(instance) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/hide_ancestry/model_manage/base.rb', line 10 def initialize(instance) @instance = instance end |
Instance Attribute Details
#instance ⇒ Object
Returns the value of attribute instance.
8 9 10 |
# File 'lib/hide_ancestry/model_manage/base.rb', line 8 def instance @instance end |
Class Method Details
.call(instance) ⇒ Object
4 5 6 |
# File 'lib/hide_ancestry/model_manage/base.rb', line 4 def self.call(instance) new(instance).call end |