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.
189 190 191 |
# File 'lib/piglet/interpreter.rb', line 189 def initialize(relation) @target = relation end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
187 188 189 |
# File 'lib/piglet/interpreter.rb', line 187 def target @target end |
Instance Method Details
#to_s ⇒ Object
193 194 195 |
# File 'lib/piglet/interpreter.rb', line 193 def to_s "#{@target.alias} = #{@target.to_s}" end |