Class: Assignbot::Variable

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#assignerObject (readonly)

Returns the value of attribute assigner.



5
6
7
# File 'lib/assignbot/foundations/variable.rb', line 5

def assigner
  @assigner
end

#receptorObject

receptor, receive value



12
13
14
# File 'lib/assignbot/foundations/variable.rb', line 12

def receptor
  @receptor
end

#source_variableObject

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_variableObject

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