Sha256: 9b43c8f0d4034b5448c182f4566e130b341e4c6fcd59fd88415c1e9c7f0ef3bb
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
module SlimGruntHelpers module Models class Usemin BASE_OPTIONS = {}.freeze def initialize @links = [] end def <<(path, options={}) @links << { path: path, options: base_options.merge(options) } end def each @links.each { |link| yield(transform_link(link)) } end def base_options BASE_OPTIONS end protected def transform_link(link) raise NotImplementedError, 'This method must be implemented in child classes' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slim-grunt-helpers-0.0.1 | lib/slim-grunt-helpers/models/usemin.rb |