Class: Numerals::Format::Notation
- Inherits:
-
Object
- Object
- Numerals::Format::Notation
- Defined in:
- lib/numerals/format/notation.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
- #assemble(output, text_parts) ⇒ Object
- #disassemble(text) ⇒ Object
-
#initialize(format) ⇒ Notation
constructor
A new instance of Notation.
Constructor Details
#initialize(format) ⇒ Notation
Returns a new instance of Notation.
7 8 9 |
# File 'lib/numerals/format/notation.rb', line 7 def initialize(format) @format = format end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
11 12 13 |
# File 'lib/numerals/format/notation.rb', line 11 def format @format end |
Instance Method Details
#assemble(output, text_parts) ⇒ Object
13 14 15 |
# File 'lib/numerals/format/notation.rb', line 13 def assemble(output, text_parts) raise "assemble must be implemented in Notation derived class #{self.class}" end |
#disassemble(text) ⇒ Object
17 18 19 |
# File 'lib/numerals/format/notation.rb', line 17 def disassemble(text) raise "disassemble must be implemented in Notation derived class #{self.class}" end |