Top Level Namespace

Defined Under Namespace

Modules: Annotated, AnnotatedArray, AnnotatedModule, Annotation, Association, AssociationItem, Bgzf, CMD, ChainMethods, Colorize, ConcurrentStream, Entity, FileCache, Filtered, IndiferentHash, LaterString, LocalPersist, Log, Misc, MultipleResult, NamedArray, Open, PDF2Text, Path, Persist, R, Rake, Rbbt, RbbtSemaphore, Resource, Rserve, SOPT, SimpleDSL, TSV, Task, TmpFile, Workflow Classes: Aborted, ClosedStream, Color, FieldNotFoundError, FixWidthTable, Hash, KeepBar, KeepLocked, KnowledgeBase, MockMutex, PackedIndex, ParameterException, ProcessFailed, RbbtProcessQueue, RbbtThreadQueue, RemoteServerError, Step, String, TryAgain, WorkflowSOAP

Instance Method Summary collapse

Instance Method Details

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



284
285
286
# File 'lib/rbbt/util/log.rb', line 284

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

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



308
309
310
# File 'lib/rbbt/util/log.rb', line 308

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

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



304
305
306
# File 'lib/rbbt/util/log.rb', line 304

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

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



328
329
330
# File 'lib/rbbt/util/log.rb', line 328

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

#fff(object) ⇒ Object



276
277
278
279
280
281
282
# File 'lib/rbbt/util/log.rb', line 276

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

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



320
321
322
# File 'lib/rbbt/util/log.rb', line 320

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

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



296
297
298
# File 'lib/rbbt/util/log.rb', line 296

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

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



312
313
314
# File 'lib/rbbt/util/log.rb', line 312

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

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



288
289
290
# File 'lib/rbbt/util/log.rb', line 288

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

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



316
317
318
# File 'lib/rbbt/util/log.rb', line 316

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

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



292
293
294
# File 'lib/rbbt/util/log.rb', line 292

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

#ppp(message) ⇒ Object



268
269
270
271
272
273
274
# File 'lib/rbbt/util/log.rb', line 268

def ppp(message)
  stack = caller
  puts "#{Log.color :cyan, "PRINT:"} " << stack.first
  puts ""
  puts Log.color(:cyan, "=> ") << message.to_s
  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/rbbt/util/color.rb', line 265

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

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



324
325
326
# File 'lib/rbbt/util/log.rb', line 324

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

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



300
301
302
# File 'lib/rbbt/util/log.rb', line 300

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