Class: RatatuiRuby::Draw::StringCmd
- Inherits:
-
Data
- Object
- Data
- RatatuiRuby::Draw::StringCmd
- Defined in:
- lib/ratatui_ruby/draw.rb
Overview
Command to draw a string at the given coordinates.
- x
-
X coordinate (absolute).
- y
-
Y coordinate (absolute).
- string
-
The text to draw.
- style
-
Style hash or Style object.
Instance Attribute Summary collapse
-
#string ⇒ Object
readonly
Returns the value of attribute string.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Attribute Details
#string ⇒ Object (readonly)
Returns the value of attribute string
39 40 41 |
# File 'lib/ratatui_ruby/draw.rb', line 39 def string @string end |
#style ⇒ Object (readonly)
Returns the value of attribute style
39 40 41 |
# File 'lib/ratatui_ruby/draw.rb', line 39 def style @style end |
#x ⇒ Object (readonly)
Returns the value of attribute x
39 40 41 |
# File 'lib/ratatui_ruby/draw.rb', line 39 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y
39 40 41 |
# File 'lib/ratatui_ruby/draw.rb', line 39 def y @y end |