Exception: TomDoc::InvalidTomDoc
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- TomDoc::InvalidTomDoc
- Defined in:
- lib/tomdoc/tomdoc.rb
Instance Method Summary collapse
-
#initialize(doc) ⇒ InvalidTomDoc
constructor
Create new InvalidTomDoc object.
-
#message ⇒ Object
Provide access to document string.
-
#to_s ⇒ Object
Provide access to document string.
Constructor Details
#initialize(doc) ⇒ InvalidTomDoc
Create new InvalidTomDoc object.
doc - document string
15 16 17 |
# File 'lib/tomdoc/tomdoc.rb', line 15 def initialize(doc) @doc = doc end |
Instance Method Details
#message ⇒ Object
Provide access to document string.
Returns String.
22 23 24 |
# File 'lib/tomdoc/tomdoc.rb', line 22 def @doc end |
#to_s ⇒ Object
Provide access to document string.
Returns String.
29 30 31 |
# File 'lib/tomdoc/tomdoc.rb', line 29 def to_s @doc end |