# File lib/sprockets/base.rb, line 172 def build_asset(logical_path, pathname, options) pathname = Pathname.new(pathname) return unless stat(pathname) # If there are any processors to run on the pathname, use # `BundledAsset`. Otherwise use `StaticAsset` and treat is as binary. if attributes_for(pathname).processors.any? BundledAsset.new(self, logical_path, pathname, options) else StaticAsset.new(self, logical_path, pathname) end end