Sha256: c642ff756bfe2b0c1108b75c315a24b096c2b80071702c07ea907593bf6bb763

Contents?: true

Size: 1.33 KB

Versions: 1

Compression:

Stored size: 1.33 KB

Contents

# frozen_string_literal: true

require 'active_support'
require 'active_support/core_ext'
require 'pathname'
require 'set'

require_relative 'amber_component/configuration'

# Root module of the `amber_component` gem.
module ::AmberComponent
  class Error < ::StandardError; end
  class MissingPropsError < Error; end
  class IncorrectPropTypeError < Error; end
  class ViewFileNotFoundError < Error; end
  class InvalidTypeError < Error; end

  class EmptyViewError < Error; end
  class UnknownViewTypeError < Error; end
  class MultipleViewsError < Error; end

  # @return [Pathname]
  ROOT_GEM_PATH = ::Pathname.new ::File.expand_path('..', __dir__)

  class << self
    # @return [Configuration]
    def configuration
      @configuration ||= Configuration.new
    end

    # @yieldparam [Configuration]
    # @return [void]
    def configure
      yield configuration
    end
  end
end

require_relative 'amber_component/version'
require_relative 'amber_component/helpers'
require_relative 'amber_component/typed_content'
require_relative 'amber_component/template_handler'
require_relative 'amber_component/views'
require_relative 'amber_component/assets'
require_relative 'amber_component/rendering'
require_relative 'amber_component/props'
require_relative 'amber_component/base'
require_relative 'amber_component/railtie' if defined?(::Rails::Railtie)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amber_component-1.1.1 lib/amber_component.rb