Class: Numerals::Format::TextNotation::OutputSize

Inherits:
Object
  • Object
show all
Defined in:
lib/numerals/format/notations/text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOutputSize

Returns a new instance of OutputSize.



119
120
121
# File 'lib/numerals/format/notations/text.rb', line 119

def initialize
  @size = 0
end

Instance Attribute Details

#sizeObject (readonly)

Returns the value of attribute size.



125
126
127
# File 'lib/numerals/format/notations/text.rb', line 125

def size
  @size
end

Instance Method Details

#<<(text) ⇒ Object



122
123
124
# File 'lib/numerals/format/notations/text.rb', line 122

def <<(text)
  @size += text.size
end