Parent

Methods

Less::Loader::HttpNodeObj

Attributes

err[RW]

Public Class Methods

new(err) click to toggle source
# File lib/less/loader.rb, line 140
def initialize(err)
  @err = err
end

Public Instance Methods

on(event, callback) click to toggle source
# File lib/less/loader.rb, line 144
def on(event, callback)
  case event
  when 'error'
    callback.call(@err) if @err  #only call when error exists
  else
    callback.call()
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.