Sha256: 0ddf83f45fffa8f6c7f98206058909b17f05e44c64d616d3f54dabc80a12d5e4

Contents?: true

Size: 601 Bytes

Versions: 7

Compression:

Stored size: 601 Bytes

Contents

# Constants and errors common in the whole library
module ROM
  Undefined = Object.new.freeze

  AdapterLoadError = Class.new(StandardError)

  EnvAlreadyFinalizedError = Class.new(StandardError)
  RelationAlreadyDefinedError = Class.new(StandardError)
  NoRelationError = Class.new(StandardError)
  CommandError = Class.new(StandardError)
  TupleCountMismatchError = Class.new(CommandError)
  MapperMissingError = Class.new(StandardError)

  InvalidOptionValueError = Class.new(StandardError)
  InvalidOptionKeyError = Class.new(StandardError)

  EMPTY_ARRAY = [].freeze
  EMPTY_HASH = {}.freeze
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rom-0.6.2 lib/rom/constants.rb
rom-0.6.1 lib/rom/constants.rb
rom-0.6.0 lib/rom/constants.rb
rom-0.6.0.rc1 lib/rom/constants.rb
rom-0.6.0.beta3 lib/rom/constants.rb
rom-0.6.0.beta2 lib/rom/constants.rb
rom-0.6.0.beta1 lib/rom/constants.rb