Top Level Namespace

Defined Under Namespace

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

Instance Method Summary collapse

Instance Method Details

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



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

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

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



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

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

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



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

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

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



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

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

#fff(object) ⇒ Object



303
304
305
306
307
308
309
# File 'lib/rbbt/util/log.rb', line 303

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



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

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

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



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

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

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



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

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

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



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

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

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



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

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

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



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

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

#ppp(message) ⇒ Object



291
292
293
294
295
296
297
298
299
300
301
# File 'lib/rbbt/util/log.rb', line 291

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/rbbt/util/color.rb', line 265

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

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



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

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

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



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

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