Class: Object

Inherits:
BasicObject
Defined in:
lib/less.rb

Instance Method Summary collapse

Instance Method Details

#error(s) ⇒ Object



66
# File 'lib/less.rb', line 66

def error(s) $stderr.puts s end

#error!(s) ⇒ Object

Raises:

  • (Exception)


67
# File 'lib/less.rb', line 67

def error!(s) raise Exception, s end

#log(s = '') ⇒ Object



64
# File 'lib/less.rb', line 64

def log(s = '')  puts "* #{s}" if $verbose end

#log!(s = '') ⇒ Object



65
# File 'lib/less.rb', line 65

def log!(s = '') puts "* #{s}" end

#tap {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



59
60
61
62
# File 'lib/less.rb', line 59

def tap
  yield self
  self
end

#verboseObject



52
53
54
55
56
57
# File 'lib/less.rb', line 52

def verbose
  $verbose = true
  yield
ensure
  $verbose = false
end