Class: Assignbot::Variable
- Inherits:
-
Object
- Object
- Assignbot::Variable
- Defined in:
- lib/assignbot/foundations/variable.rb
Overview
represent the variable both from target, and from source; and through which method the value from source can be copied to target
Instance Attribute Summary collapse
-
#assigner ⇒ Object
readonly
Returns the value of attribute assigner.
-
#receptor ⇒ Object
receptor, receive value.
-
#source_variable ⇒ Object
Returns the value of attribute source_variable.
-
#target_variable ⇒ Object
the variable to which the value will be copied to.
Instance Method Summary collapse
-
#initialize(assigner) ⇒ Variable
constructor
A new instance of Variable.
Constructor Details
#initialize(assigner) ⇒ Variable
Returns a new instance of Variable.
14 15 16 |
# File 'lib/assignbot/foundations/variable.rb', line 14 def initialize(assigner) @assigner = assigner end |
Instance Attribute Details
#assigner ⇒ Object (readonly)
Returns the value of attribute assigner.
5 6 7 |
# File 'lib/assignbot/foundations/variable.rb', line 5 def assigner @assigner end |
#receptor ⇒ Object
receptor, receive value
12 13 14 |
# File 'lib/assignbot/foundations/variable.rb', line 12 def receptor @receptor end |
#source_variable ⇒ Object
Returns the value of attribute source_variable.
9 10 11 |
# File 'lib/assignbot/foundations/variable.rb', line 9 def source_variable @source_variable end |
#target_variable ⇒ Object
the variable to which the value will be copied to
8 9 10 |
# File 'lib/assignbot/foundations/variable.rb', line 8 def target_variable @target_variable end |