Exception: TomDoc::InvalidTomDoc

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/tomdoc/tomdoc.rb

Instance Method Summary collapse

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

#messageObject

Provide access to document string.

Returns String.



22
23
24
# File 'lib/tomdoc/tomdoc.rb', line 22

def message
  @doc
end

#to_sObject

Provide access to document string.

Returns String.



29
30
31
# File 'lib/tomdoc/tomdoc.rb', line 29

def to_s
  @doc
end