Class: PFM::Message::WidthComputer

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

Overview

Class that helps to compute the width of the words

Instance Method Summary collapse

Constructor Details

#initialize(text_normal, text_big) ⇒ WidthComputer

Create a new WidthComputer

Parameters:



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

Parameters:

Returns:

  • (Integer)


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

Returns:

  • (Boolean)


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

Parameters:

Returns:

  • (Integer)


335
336
# File 'docs/4_Systems_004_Message.rb', line 335

def normal_width(text)
end