Sha256: a16ed01dc65dd932f40342b7075e21b82177a1368cc577254ce1d72efa4af525
Contents?: true
Size: 350 Bytes
Versions: 3
Compression:
Stored size: 350 Bytes
Contents
module TOML # Parent class for all TOML errors Error = Class.new(StandardError) # Error related to parsing. ParseError = Class.new(Error) # Overwrite error class ValueOverwriteError < Error attr_accessor :key def initialize(key) self.key = key super "Key #{key.inspect} is defined more than once" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
toml-rb-0.3.9 | lib/toml/errors.rb |
toml-rb-0.3.8 | lib/toml/errors.rb |
toml-rb-0.3.7 | lib/toml/errors.rb |