Top Level Namespace
Defined Under Namespace
Modules: Annotated, AnnotatedArray, AnnotatedModule, Annotation, Association, AssociationItem, CMD, ChainMethods, Colorize, Entity, FileCache, Filtered, IndiferentHash, LaterString, LocalPersist, Log, Misc, NamedArray, Open, PDF2Text, Path, Persist, R, Rake, Rbbt, RbbtSemaphore, Resource, SOPT, SimpleDSL, TSV, Task, TmpFile, Workflow
Classes: Color, FixWidthTable, Hash, KnowledgeBase, ParameterException, RBBTError, Step, WorkflowSOAP
Instance Method Summary
collapse
Instance Method Details
#ddd(message, file = $stdout) ⇒ Object
92
93
94
95
96
97
98
|
# File 'lib/rbbt/util/log.rb', line 92
def ddd(message, file = $stdout)
stack = caller
Log.debug{"#{Log::SEVERITY_COLOR[1]}DEVEL:#{Log::SEVERITY_COLOR[0]} " << stack.first}
Log.debug{""}
Log.debug{"=> " << message.inspect}
Log.debug{""}
end
|
#fff(object) ⇒ Object
100
101
102
103
104
105
106
|
# File 'lib/rbbt/util/log.rb', line 100
def fff(object)
stack = caller
Log.debug{"#{Log::SEVERITY_COLOR[1]}FINGERPRINT:#{Log::SEVERITY_COLOR[0]} " << stack.first}
Log.debug{""}
Log.debug{require 'rbbt/util/misc'; "=> " << Misc.fingerprint(object) }
Log.debug{""}
end
|
#ppp(message) ⇒ Object
84
85
86
87
88
89
90
|
# File 'lib/rbbt/util/log.rb', line 84
def ppp(message)
stack = caller
puts "#{Log::SEVERITY_COLOR[1]}PRINT:#{Log::SEVERITY_COLOR[0]} " << stack.first
puts ""
puts "=> " << message
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 %>"
246
247
248
|
# File 'lib/rbbt/util/color.rb', line 246
def rgb(*args)
Color.parse(*args)
end
|