Module: SprocketsWriterPatches

Defined in:
lib/jekyll/assets/writer.rb

Instance Method Summary collapse

Instance Method Details

#callObject


14
15
16
17
18
19
20
21
# File 'lib/jekyll/assets/writer.rb', line 14

def call
  before_hook(asset, env: environment)
  after_hook(out = super, {
    env: environment, asset: asset
  })

  out
end

#skip?(logger) ⇒ Boolean

Returns:

  • (Boolean)

7
8
9
10
11
# File 'lib/jekyll/assets/writer.rb', line 7

def skip?(logger)
  return true if File.exist?(target)
  logger.debug "Writing asset to #{target}"
  false
end