Class: RatatuiRuby::Widgets::Shape::Point
- Inherits:
-
Object
- Object
- RatatuiRuby::Widgets::Shape::Point
- Defined in:
- lib/ratatui_ruby/widgets/canvas.rb
Overview
A point in the canvas coordinate system.
- x
-
The x-coordinate.
- y
-
The y-coordinate.
Instance Method Summary collapse
-
#initialize(x:, y:) ⇒ Point
constructor
Creates a new Point.
Constructor Details
#initialize(x:, y:) ⇒ Point
Creates a new Point.
- x
-
X coordinate (Numeric).
- y
-
Y coordinate (Numeric).
30 31 32 |
# File 'lib/ratatui_ruby/widgets/canvas.rb', line 30 def initialize(x:, y:) super(x: Float(x), y: Float(y)) end |