class TermCanvas::Object
Attributes
index[R]
Public Instance Methods
position_offset(x: nil, y: nil)
click to toggle source
@param x [Integer] Offset of x @param y [Integer] Offset of y @return self
# File lib/term_canvas/object.rb, line 13 def position_offset(x: nil, y: nil) @x += x if x @y += y if y self end
position_override(x: nil, y: nil)
click to toggle source
@param x [Integer] New x @param y [Integer] New y @return self
# File lib/term_canvas/object.rb, line 22 def position_override(x: nil, y: nil) @x = x if x @y = y if y self end
set_index(index)
click to toggle source
@param index [Integer]
# File lib/term_canvas/object.rb, line 6 def set_index(index) @object_index = index end