Class: Object

Inherits:
BasicObject
Defined in:
lib/less.rb

Instance Method Summary collapse

Instance Method Details

#error(s) ⇒ Object



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

def error(s) $stderr.puts s end

#error!(s) ⇒ Object

Raises:

  • (CradleError)


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

def error!(s) raise CradleError, s end

#log(s = '') ⇒ Object



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

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

#log!(s = '') ⇒ Object



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

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

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



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

def tap
  yield self
  self
end

#verboseObject



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

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