Parent

Less::Rails::ImportProcessor

Constants

IMPORT_SCANNER

Public Instance Methods

depend_on(scope, data) click to toggle source
# File lib/less/rails/import_processor.rb, line 15
def depend_on(scope, data)
  import_paths = data.scan(IMPORT_SCANNER).flatten.compact.uniq
  import_paths.each do |path|
    pathname = begin
                 scope.resolve(path)
               rescue Sprockets::FileNotFound
                 nil
               end
    scope.depend_on(path) if pathname && pathname.to_s.ends_with?('.less')
    depend_on scope, File.read(pathname) if pathname
  end
  data
end
evaluate(scope, locals, &block) click to toggle source
# File lib/less/rails/import_processor.rb, line 10
def evaluate(scope, locals, &block)
  depend_on scope, data
  data
end
prepare() click to toggle source
# File lib/less/rails/import_processor.rb, line 7
def prepare
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.