Class: AnimateIt::Configuration
- Inherits:
-
Object
- Object
- AnimateIt::Configuration
- Defined in:
- lib/animate_it/configuration.rb
Overview
Instance Attribute Summary collapse
-
#mount_path ⇒ Object
Returns the value of attribute mount_path.
-
#render_stylesheets ⇒ Object
Host-app stylesheets to load into every rendered frame/filmstrip
.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
22 23 24 25 |
# File 'lib/animate_it/configuration.rb', line 22 def initialize @mount_path = "/animate_it" @render_stylesheets = [] end |
Instance Attribute Details
#mount_path ⇒ Object
Returns the value of attribute mount_path.
9 10 11 |
# File 'lib/animate_it/configuration.rb', line 9 def mount_path @mount_path end |
#render_stylesheets ⇒ Object
Host-app stylesheets to load into every rendered frame/filmstrip
. Compositions that re-use host partials (which expect the host's component CSS) list the bundles they need here, e.g.:config.render_stylesheets = %w[application components/star-ratings]
Names are passed straight to stylesheet_link_tag, so they resolve
through the host's asset pipeline. Default empty — a composition built
from self-contained markup needs none.
20 21 22 |
# File 'lib/animate_it/configuration.rb', line 20 def render_stylesheets @render_stylesheets end |