Class: Shale::Mapping::Delegates::Delegate Private
- Inherits:
-
Object
- Object
- Shale::Mapping::Delegates::Delegate
- Defined in:
- lib/shale/mapping/delegates.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class representing individual delegation
Instance Attribute Summary collapse
-
#receiver_attribute ⇒ Shale::Attribute
readonly
private
Return receiver_attribute.
-
#setter ⇒ String
readonly
private
Return attribute setter on a delegate.
-
#value ⇒ any
readonly
private
Return value to set on a delegate.
Instance Method Summary collapse
-
#initialize(receiver_attribute, setter, value) ⇒ Delegate
constructor
private
Initialize instance.
Constructor Details
#initialize(receiver_attribute, setter, value) ⇒ Delegate
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize instance
41 42 43 44 45 |
# File 'lib/shale/mapping/delegates.rb', line 41 def initialize(receiver_attribute, setter, value) @receiver_attribute = receiver_attribute @setter = setter @value = value end |
Instance Attribute Details
#receiver_attribute ⇒ Shale::Attribute (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return receiver_attribute
18 19 20 |
# File 'lib/shale/mapping/delegates.rb', line 18 def receiver_attribute @receiver_attribute end |
#setter ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return attribute setter on a delegate
25 26 27 |
# File 'lib/shale/mapping/delegates.rb', line 25 def setter @setter end |
#value ⇒ any (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return value to set on a delegate
32 33 34 |
# File 'lib/shale/mapping/delegates.rb', line 32 def value @value end |