Class: RatatuiRuby::Draw::StringCmd

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#stringObject (readonly)

Returns the value of attribute string

Returns:

  • (Object)

    the current value of string



39
40
41
# File 'lib/ratatui_ruby/draw.rb', line 39

def string
  @string
end

#styleObject (readonly)

Returns the value of attribute style

Returns:

  • (Object)

    the current value of style



39
40
41
# File 'lib/ratatui_ruby/draw.rb', line 39

def style
  @style
end

#xObject (readonly)

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



39
40
41
# File 'lib/ratatui_ruby/draw.rb', line 39

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



39
40
41
# File 'lib/ratatui_ruby/draw.rb', line 39

def y
  @y
end