Class: Docks::Themes::Base

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/docks_theme_base/theme.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



12
13
14
15
# File 'lib/docks_theme_base/theme.rb', line 12

def initialize
  @assets = Assets.new(root: File.expand_path("../../../assets", __FILE__))
  @helpers = []
end

Instance Attribute Details

#assetsObject (readonly)

Returns the value of attribute assets.



10
11
12
# File 'lib/docks_theme_base/theme.rb', line 10

def assets
  @assets
end

#helpersObject (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

#scriptsObject



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.options.style_language)
  setup_scripts(builder, builder.options.script_language)
  setup_templates(builder, builder.options.template_language)
end

#stylesObject



17
18
19
# File 'lib/docks_theme_base/theme.rb', line 17

def styles
  assets.styles
end