Class: AsciiChem::Parser
- Inherits:
-
Object
- Object
- AsciiChem::Parser
- Defined in:
- lib/asciichem/parser.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(text) ⇒ Parser
Returns a new instance of Parser.
7 8 9 |
# File 'lib/asciichem/parser.rb', line 7 def initialize(text) @text = text.to_s end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/asciichem/parser.rb', line 5 def text @text end |