lib/glossarist.rb in glossarist-1.0.9 vs lib/glossarist.rb in glossarist-1.1.0
- old
+ new
@@ -28,31 +28,12 @@
require_relative "glossarist/non_verb_rep"
require_relative "glossarist/collections"
require_relative "glossarist/config"
+require_relative "glossarist/error"
module Glossarist
- class Error < StandardError; end
-
- class InvalidTypeError < StandardError; end
-
- class ParseError < StandardError
- attr_accessor :line, :filename
-
- def initialize(filename:, line: nil)
- @filename = filename
- @line = line
-
- super()
- end
-
- def to_s
- "Unable to parse file: #{filename}, error on line: #{line}"
- end
- end
- # Your code goes here...
-
def self.configure
config = Glossarist::Config.instance
yield(config) if block_given?
end