Class: ZAssets::Plugins::Handlebars::Registrant

Inherits:
Object
  • Object
show all
Defined in:
lib/zassets/plugins/handlebars/registrant.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Registrant

Returns a new instance of Registrant.



5
6
7
# File 'lib/zassets/plugins/handlebars/registrant.rb', line 5

def initialize(config)
  @config = config
end

Instance Method Details

#registerObject



9
10
11
12
13
# File 'lib/zassets/plugins/handlebars/registrant.rb', line 9

def register
  require 'handlebars_assets'

  @config[:paths] << HandlebarsAssets.path
end