module SprocketsFileReaderPatches

Copyright: 2012 - 2018 - MIT License Encoding: utf-8

Public Instance Methods

call(input) click to toggle source
Calls superclass method
# File lib/jekyll/assets/reader.rb, line 6
def call(input)
  before_hook(input); out = super; after_hook(out); out
end

Private Instance Methods

after_hook(input) click to toggle source

# File lib/jekyll/assets/reader.rb, line 20
def after_hook(input)
  Jekyll::Assets::Hook.trigger :asset, :after_read do |v|
    v.call(input)
  end
end
before_hook(input) click to toggle source

# File lib/jekyll/assets/reader.rb, line 12
def before_hook(input)
  Jekyll::Assets::Hook.trigger :asset, :before_read do |v|
    v.call(input)
  end
end