Class: PFM::Message::Instructions::Text
- Defined in:
- scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb
Overview
Class that describe a text object
Instance Attribute Summary collapse
-
#text ⇒ String
readonly
Get the text to show.
-
#width ⇒ Integer
readonly
Get the width of the text.
Instance Method Summary collapse
-
#initialize(text, width) ⇒ Text
constructor
Create a new text object.
Constructor Details
#initialize(text, width) ⇒ Text
Create a new text object
226 227 228 229 |
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 226 def initialize(text, width) @text = text @width = width end |
Instance Attribute Details
#text ⇒ String (readonly)
Get the text to show
218 219 220 |
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 218 def text @text end |
#width ⇒ Integer (readonly)
Get the width of the text
221 222 223 |
# File 'scripts/01450 Systems/00004 Message/00001 Logic/00003 Instructions.rb', line 221 def width @width end |