Class: PFM::Message::Instructions::Text

Inherits:
Object
  • Object
show all
Defined in:
docs/4_Systems_004_Message.rb

Overview

Class that describe a text object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, width) ⇒ Text

Create a new text object

Parameters:

  • text (String)

    text to show

  • width (Integer)

    width of the text to show



313
314
# File 'docs/4_Systems_004_Message.rb', line 313

def initialize(text, width)
end

Instance Attribute Details

#textString (readonly)

Get the text to show

Returns:



306
307
308
# File 'docs/4_Systems_004_Message.rb', line 306

def text
  @text
end

#widthInteger (readonly)

Get the width of the text

Returns:

  • (Integer)


309
310
311
# File 'docs/4_Systems_004_Message.rb', line 309

def width
  @width
end