Sha256: aabed55b8a57467bb457fd68400f77c4ec729b83cf78c996a1f4c95f74294608
Contents?: true
Size: 802 Bytes
Versions: 4
Compression:
Stored size: 802 Bytes
Contents
# encoding: utf-8 module Middleman module Sprockets # ImportedAsset class ImportedAsset attr_reader :logical_path, :output_path # Create instance # # @param [Pathname] logical_path # The logical path to the asset given in config.rb # # @param [proc] output_dir # An individual output directory for that particular asset def initialize logical_path, output_path = nil @logical_path = Pathname.new logical_path if output_path.respond_to? :call if output_path.arity.abs == 1 output_path = output_path.call(@logical_path) else output_path = output_path.call end end @output_path = Pathname.new output_path if output_path end end end end
Version data entries
4 entries across 4 versions & 1 rubygems