Module: Birdspotting

Defined in:
lib/birdspotting.rb,
lib/birdspotting/errors.rb,
lib/birdspotting/version.rb

Defined Under Namespace

Modules: ReorderColumns, SchemaStatements Classes: ColumnPositionMissingError, Configuration, Error, MismatchedColumnsError, ModelNotFoundError, RemoveColumnForbiddenError, RenameColumnForbiddenError, UnsupportedAdapterError

Constant Summary collapse

VERSION =
"0.1.9".freeze

Class Method Summary collapse

Class Method Details

.configurationObject



10
11
12
# File 'lib/birdspotting.rb', line 10

def self.configuration
  @configuration || configure
end

.configure(&block) ⇒ Object



14
15
16
17
18
# File 'lib/birdspotting.rb', line 14

def self.configure(&block)
  @configuration = Configuration.default.tap do |config|
    block&.call(config)
  end
end