module Spark::Component

Constants

BASE_ATTRIBUTES
VERSION

Public Class Methods

included(base) click to toggle source
# File lib/spark/component.rb, line 13
def self.included(base)
  base.include Spark::Component::Attribute
  base.include Spark::Component::Element

  # If an Integration is defeind include its modules if the component extends
  # the defined base class
  return unless defined?(Spark::Component::Integration)

  base.include(Spark::Component::Integration) if base < Spark::Component::Integration.base_class
end