Parent

Included Modules

Object

stolen from ActiveSupport

Public Instance Methods

blank?() click to toggle source
# File lib/airbrake/utils/blank.rb, line 4
def blank?
  respond_to?(:empty?) ? empty? : !self
end
heroku_var(var) click to toggle source
# File lib/airbrake/shared_tasks.rb, line 33
def heroku_var(var)
  `heroku config | grep -E "#{var.upcase}" | awk '{ print $3; }'`.strip
end
presence() click to toggle source
# File lib/airbrake/utils/blank.rb, line 12
def presence
  self if present?
end
present?() click to toggle source
# File lib/airbrake/utils/blank.rb, line 8
def present?
  !blank?
end
wait_for_threads() click to toggle source
# File lib/airbrake/rails3_tasks.rb, line 11
def wait_for_threads
  # if using multiple threads, we have to wait for
  # them to finish
  if GirlFriday.status.empty?
    Thread.list.each do |thread|
      thread.join unless thread == Thread.current
    end
  else
    GirlFriday.shutdown!
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.