Top Level Namespace

Defined Under Namespace

Modules: CaseInsensitiveHash, Colorize, IndiferentHash, Log, MetaExtension, Misc, Path, TmpFile Classes: Aborted, Color, ConcurrentStreamProcessFailed, DontClose, FieldNotFoundError, KeepBar, KeepLocked, OpenURLError, ProcessFailed, ScoutDeprecated, ScoutException, StopInsist, TryAgain

Instance Method Summary collapse

Instance Method Details

#ddd(obj, file = $stdout) ⇒ Object



315
316
317
# File 'lib/scout/log.rb', line 315

def ddd(obj, file = $stdout)
  Log.log_obj_inspect(obj, :debug, file)
end

#ddf(obj = nil, file = $stdout) ⇒ Object



339
340
341
# File 'lib/scout/log.rb', line 339

def ddf(obj=nil, file = $stdout)
  Log.log_obj_fingerprint(obj, :debug, file)
end

#eee(obj = nil, file = $stdout) ⇒ Object



335
336
337
# File 'lib/scout/log.rb', line 335

def eee(obj=nil, file = $stdout)
  Log.log_obj_inspect(obj, :error, file)
end

#eef(obj = nil, file = $stdout) ⇒ Object



359
360
361
# File 'lib/scout/log.rb', line 359

def eef(obj=nil, file = $stdout)
  Log.log_obj_fingerprint(obj, :error, file)
end

#fff(object) ⇒ Object



307
308
309
310
311
312
313
# File 'lib/scout/log.rb', line 307

def fff(object)
  stack = caller
  Log.debug{"#{Log.color :cyan, "FINGERPRINT:"} " << stack.first}
  Log.debug{""}
  Log.debug{require 'scout/util/misc'; "=> " << Log.fingerprint(object) }
  Log.debug{""}
end

#iif(obj = nil, file = $stdout) ⇒ Object



351
352
353
# File 'lib/scout/log.rb', line 351

def iif(obj=nil, file = $stdout)
  Log.log_obj_fingerprint(obj, :info, file)
end

#iii(obj = nil, file = $stdout) ⇒ Object



327
328
329
# File 'lib/scout/log.rb', line 327

def iii(obj=nil, file = $stdout)
  Log.log_obj_inspect(obj, :info, file)
end

#llf(obj = nil, file = $stdout) ⇒ Object



343
344
345
# File 'lib/scout/log.rb', line 343

def llf(obj=nil, file = $stdout)
  Log.log_obj_fingerprint(obj, :low, file)
end

#lll(obj, file = $stdout) ⇒ Object



319
320
321
# File 'lib/scout/log.rb', line 319

def lll(obj, file = $stdout)
  Log.log_obj_inspect(obj, :low, file)
end

#mmf(obj = nil, file = $stdout) ⇒ Object



347
348
349
# File 'lib/scout/log.rb', line 347

def mmf(obj=nil, file = $stdout)
  Log.log_obj_fingerprint(obj, :medium, file)
end

#mmm(obj, file = $stdout) ⇒ Object



323
324
325
# File 'lib/scout/log.rb', line 323

def mmm(obj, file = $stdout)
  Log.log_obj_inspect(obj, :medium, file)
end

#ppp(message) ⇒ Object



295
296
297
298
299
300
301
302
303
304
305
# File 'lib/scout/log.rb', line 295

def ppp(message)
  stack = caller
  puts "#{Log.color :cyan, "PRINT:"} " << stack.first
  puts ""
  if message.length > 200 or message.include? "\n"
    puts Log.color(:cyan, "=>|") << "\n" << message.to_s
  else
    puts Log.color(:cyan, "=> ") << message.to_s
  end
  puts ""
end

#rgb(*args) ⇒ Object

“Global” method for creating Color objects, eg:

new_color = rgb(params[:new_color])
style="border: 1px solid <%= rgb(10,50,80).lighten %>"


265
266
267
# File 'lib/scout/log/color_class.rb', line 265

def rgb(*args)
  Color.parse(*args)
end

#wwwf(obj = nil, file = $stdout) ⇒ Object



355
356
357
# File 'lib/scout/log.rb', line 355

def wwwf(obj=nil, file = $stdout)
  Log.log_obj_fingerprint(obj, :warn, file)
end

#wwww(obj = nil, file = $stdout) ⇒ Object



331
332
333
# File 'lib/scout/log.rb', line 331

def wwww(obj=nil, file = $stdout)
  Log.log_obj_inspect(obj, :warn, file)
end