Top Level Namespace

Defined Under Namespace

Modules: AbortedStream, Annotated, AnnotatedArray, AnnotatedModule, Annotation, Association, AssociationItem, Bgzf, CMD, ChainMethods, Colorize, ComputeDependency, ConcurrentStream, Docker, Entity, FileCache, Filtered, IndiferentHash, InputModule, LaterString, LocalPersist, Log, 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, FieldNotFoundError, FixWidthTable, Hash, KeepBar, KeepLocked, KnowledgeBase, MockMutex, PackedIndex, ParameterException, ProcessFailed, RbbtException, RbbtProcessQueue, RbbtThreadQueue, RemoteServerError, Step, StopInsist, String, TryAgain, WorkflowRESTClient, WorkflowSOAP

Instance Method Summary collapse

Instance Method Details

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



302
303
304
# File 'lib/rbbt/util/log.rb', line 302

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

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



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

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

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



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

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

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



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

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

#fff(object) ⇒ Object



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

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



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

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

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



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

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

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



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

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

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



306
307
308
# File 'lib/rbbt/util/log.rb', line 306

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

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



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

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

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



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

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

#ppp(message) ⇒ Object



282
283
284
285
286
287
288
289
290
291
292
# File 'lib/rbbt/util/log.rb', line 282

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



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

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

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



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

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