Module: BitClust::ParseUtils

Included in:
LineFilter, RRDParser
Defined in:
lib/bitclust/parseutils.rb

Overview

Utilities for parsing

Instance Method Summary collapse

Instance Method Details

#parse_error(msg, line) ⇒ Object

Raises:


60
61
62
# File 'lib/bitclust/parseutils.rb', line 60

def parse_error(msg, line)
  raise ParseError, "#{line.location}: #{msg}: #{line.inspect}"
end