Module: Rdoba::Log::Functions
Instance Method Summary
collapse
#dbc, #dbg, #dbgl, #dbgl=, #dbp
Instance Method Details
#<=(functions = []) ⇒ Object
233
234
|
# File 'lib/rdoba/log.rb', line 233
def <= functions = []
self.class <= functions; end
|
#>=(functions = []) ⇒ Object
236
237
|
# File 'lib/rdoba/log.rb', line 236
def >= functions = []
self.class >= functions; end
|
239
240
241
242
243
244
245
246
247
248
|
# File 'lib/rdoba/log.rb', line 239
def e *args
io =
case args.last
when IO
args.pop
else
$stderr ; end
e = $! || args.shift
dump = ( [ $@ || args.shift ] + args ).flatten.compact
io.send :puts, "#{e.class}:%> #{e}\n\t#{dump.join("\n\t")}"; end
|
#get_stack_function_data_at_level(level) ⇒ Object
250
251
252
253
254
255
|
# File 'lib/rdoba/log.rb', line 250
def get_stack_function_data_at_level( level )
raise Exception
rescue Exception
$@[ level ] =~ /([^\/]+):(\d+):in `(.*?)'$/
[ $1, $3, $2 ]; end
|