Exception: RSTError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rsyntaxtree.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Error: something unexpected occurred") ⇒ RSTError

Returns a new instance of RSTError.



34
35
36
37
# File 'lib/rsyntaxtree.rb', line 34

def initialize(msg = "Error: something unexpected occurred")
  msg.gsub!(WHITESPACE_BLOCK, "<>")
  super msg
end