Class: Piglet::Assignment
- Inherits:
-
Object
- Object
- Piglet::Assignment
- Defined in:
- lib/piglet/interpreter.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(relation) ⇒ Assignment
constructor
A new instance of Assignment.
- #to_s ⇒ Object
Constructor Details
#initialize(relation) ⇒ Assignment
Returns a new instance of Assignment.
159 160 161 |
# File 'lib/piglet/interpreter.rb', line 159 def initialize(relation) @target = relation end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
157 158 159 |
# File 'lib/piglet/interpreter.rb', line 157 def target @target end |
Instance Method Details
#to_s ⇒ Object
163 164 165 |
# File 'lib/piglet/interpreter.rb', line 163 def to_s "#{@target.alias} = #{@target.to_s}" end |