Class: Avo::AssetManager::StylesheetComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/avo/asset_manager/stylesheet_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(asset_manager:) ⇒ StylesheetComponent

Returns a new instance of StylesheetComponent.



6
7
8
# File 'app/components/avo/asset_manager/stylesheet_component.rb', line 6

def initialize(asset_manager:)
  @asset_manager = asset_manager
end

Instance Attribute Details

#asset_managerObject (readonly)

Returns the value of attribute asset_manager.



4
5
6
# File 'app/components/avo/asset_manager/stylesheet_component.rb', line 4

def asset_manager
  @asset_manager
end

Instance Method Details

#stylesheetsObject



10
11
12
# File 'app/components/avo/asset_manager/stylesheet_component.rb', line 10

def stylesheets
  asset_manager.stylesheets
end