Module: AmberComponent

Defined in:
lib/amber_component.rb,
lib/amber_component/base.rb,
lib/amber_component/props.rb,
lib/amber_component/views.rb,
lib/amber_component/assets.rb,
lib/amber_component/helpers.rb,
lib/amber_component/railtie.rb,
lib/amber_component/version.rb,
lib/amber_component/rendering.rb,
lib/amber_component/test_helper.rb,
lib/amber_component/configuration.rb,
lib/amber_component/typed_content.rb,
lib/amber_component/prop_definition.rb,
lib/amber_component/template_handler.rb,
lib/amber_component/helpers/css_helper.rb,
lib/amber_component/minitest_test_case.rb,
lib/amber_component/helpers/class_helper.rb,
lib/amber_component/helpers/component_helper.rb,
lib/generators/amber_component/install_generator.rb

Overview

Root module of the ‘amber_component` gem.

Defined Under Namespace

Modules: Assets, Generators, Helpers, Props, Rendering, TemplateHandler, TestHelper, Views Classes: Base, Configuration, EmptyViewError, Error, IncorrectPropTypeError, InvalidTypeError, MinitestTestCase, MissingPropsError, MultipleViewsError, PropDefinition, Railtie, TypedContent, UnknownViewTypeError

Constant Summary collapse

ROOT_GEM_PATH =

Returns:

  • (Pathname)
::Pathname.new ::File.expand_path('..', __dir__)
VERSION =
'1.2.0'

Class Method Summary collapse

Class Method Details

.configurationConfiguration

Returns:



26
27
28
# File 'lib/amber_component.rb', line 26

def configuration
  @configuration ||= Configuration.new
end

.configure {|| ... } ⇒ void

This method returns an undefined value.

Yield Parameters:



32
33
34
# File 'lib/amber_component.rb', line 32

def configure
  yield configuration
end