Sha256: ca0e6feb9962960bbea620b95be9ebd83d340688121983630ca0b70e69cf3e2e
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
module Hanami module Model # Configuration DSL # # @since 0.7.0 # @api private class Configurator # @since 0.7.0 # @api private attr_reader :backend # @since 0.7.0 # @api private attr_reader :url # @since 0.7.0 # @api private attr_reader :directory # @since 0.7.0 # @api private attr_reader :_migrations # @since 0.7.0 # @api private attr_reader :_schema # @since 0.7.0 # @api private def self.build(&block) new.tap { |config| config.instance_eval(&block) } end private # @since 0.7.0 # @api private def adapter(backend, url) @backend = backend @url = url end # @since 0.7.0 # @api private def path(path) @directory = path end # @since 0.7.0 # @api private def migrations(path) @_migrations = path end # @since 0.7.0 # @api private def schema(path) @_schema = path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-model-0.7.0 | lib/hanami/model/configurator.rb |