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.



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

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