Class: ImgToScript::AbstractToken::MovePointToAbsCoords
- Inherits:
-
AbstractToken
- Object
- AbstractToken
- ImgToScript::AbstractToken::MovePointToAbsCoords
- Defined in:
- lib/img_to_script/abstract_token/move_point_to_abs_coords.rb
Overview
Move point to the (x, y) position (in the absolute coordinates).
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Attributes inherited from AbstractToken
Instance Method Summary collapse
-
#initialize(x:, y:) ⇒ MovePointToAbsCoords
constructor
A new instance of MovePointToAbsCoords.
Constructor Details
#initialize(x:, y:) ⇒ MovePointToAbsCoords
Returns a new instance of MovePointToAbsCoords.
11 12 13 14 15 16 17 |
# File 'lib/img_to_script/abstract_token/move_point_to_abs_coords.rb', line 11 def initialize(x:, y:, **) @x = x @y = y @type = AbsTokenType::MOVE_POINT_TO_ABS_COORDS super end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
9 10 11 |
# File 'lib/img_to_script/abstract_token/move_point_to_abs_coords.rb', line 9 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
9 10 11 |
# File 'lib/img_to_script/abstract_token/move_point_to_abs_coords.rb', line 9 def y @y end |