class Craftsman::Decorator::Helper

Public Instance Methods

process(content) click to toggle source
# File lib/craftsman/decorator/helper.rb, line 3
def process(content)
  helper_targets.map do |t|
    build_filter t
  end.join + content
end

Private Instance Methods

helper_targets() click to toggle source
# File lib/craftsman/decorator/helper.rb, line 11
def helper_targets
  @package.targets.select do |t|
    t.match(/^helpers\/.*rb$/)
  end
end