Class: Docks::Themes::Base
- Inherits:
-
Object
- Object
- Docks::Themes::Base
- Includes:
- Singleton
- Defined in:
- lib/docks_theme_base/theme.rb
Instance Attribute Summary collapse
-
#assets ⇒ Object
readonly
Returns the value of attribute assets.
-
#helpers ⇒ Object
readonly
Returns the value of attribute helpers.
Instance Method Summary collapse
- #configure(_config) ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #scripts ⇒ Object
- #setup(builder) ⇒ Object
- #styles ⇒ Object
Constructor Details
Instance Attribute Details
#assets ⇒ Object (readonly)
Returns the value of attribute assets.
10 11 12 |
# File 'lib/docks_theme_base/theme.rb', line 10 def assets @assets end |
#helpers ⇒ Object (readonly)
Returns the value of attribute helpers.
10 11 12 |
# File 'lib/docks_theme_base/theme.rb', line 10 def helpers @helpers end |
Instance Method Details
#configure(_config) ⇒ Object
31 32 |
# File 'lib/docks_theme_base/theme.rb', line 31 def configure(_config) end |
#scripts ⇒ Object
21 22 23 |
# File 'lib/docks_theme_base/theme.rb', line 21 def scripts assets.scripts end |
#setup(builder) ⇒ Object
25 26 27 28 29 |
# File 'lib/docks_theme_base/theme.rb', line 25 def setup(builder) setup_styles(builder, builder..style_language) setup_scripts(builder, builder..script_language) setup_templates(builder, builder..template_language) end |
#styles ⇒ Object
17 18 19 |
# File 'lib/docks_theme_base/theme.rb', line 17 def styles assets.styles end |