Class: Numerals::Format::TextNotation::OutputSize
- Inherits:
-
Object
- Object
- Numerals::Format::TextNotation::OutputSize
- Defined in:
- lib/numerals/format/notations/text.rb
Instance Attribute Summary collapse
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
- #<<(text) ⇒ Object
-
#initialize ⇒ OutputSize
constructor
A new instance of OutputSize.
Constructor Details
#initialize ⇒ OutputSize
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
#size ⇒ Object (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 |