Class: PFM::Message::WidthComputer
- Defined in:
- docs/4_Systems_004_Message.rb
Overview
Class that helps to compute the width of the words
Instance Method Summary collapse
-
#big_width(text) ⇒ Integer
Get the width of the text when it’s big.
-
#disposed? ⇒ Boolean
Tell if any of the text is disposed.
-
#initialize(text_normal, text_big) ⇒ WidthComputer
constructor
Create a new WidthComputer.
-
#normal_width(text) ⇒ Integer
Get the normal width of the text.
Constructor Details
#initialize(text_normal, text_big) ⇒ WidthComputer
Create a new WidthComputer
330 331 |
# File 'docs/4_Systems_004_Message.rb', line 330 def initialize(text_normal, text_big) end |
Instance Method Details
#big_width(text) ⇒ Integer
Get the width of the text when it’s big
340 341 |
# File 'docs/4_Systems_004_Message.rb', line 340 def big_width(text) end |
#disposed? ⇒ Boolean
Tell if any of the text is disposed
344 345 |
# File 'docs/4_Systems_004_Message.rb', line 344 def disposed? end |
#normal_width(text) ⇒ Integer
Get the normal width of the text
335 336 |
# File 'docs/4_Systems_004_Message.rb', line 335 def normal_width(text) end |