Class: Proscenium::ViewComponent

Inherits:
ViewComponent::Base
  • Object
show all
Extended by:
ActiveSupport::Autoload
Includes:
SourcePath, CssModules
Defined in:
lib/proscenium/view_component.rb

Direct Known Subclasses

ReactComponent

Defined Under Namespace

Modules: CssModules, Sideload Classes: ReactComponent

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from CssModules

included

Methods included from CssModule

#class_names, #css_module

Methods included from SourcePath

included

Class Attribute Details

.abstract_classObject

Returns the value of attribute abstract_class.



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

def abstract_class
  @abstract_class
end

Class Method Details

.inherited(child) ⇒ Object



28
29
30
31
32
# File 'lib/proscenium/view_component.rb', line 28

def inherited(child)
  child.prepend Sideload

  super
end

.sideload_assets(value) ⇒ Object



34
35
36
# File 'lib/proscenium/view_component.rb', line 34

def sideload_assets(value)
  self.sideload_assets_options = value
end