Exception: RBBTError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbbt/util/misc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#infoObject

Returns the value of attribute info.



1346
1347
1348
# File 'lib/rbbt/util/misc.rb', line 1346

def info
  @info
end

Instance Method Details

#old_to_sObject



1348
# File 'lib/rbbt/util/misc.rb', line 1348

alias old_to_s to_s

#to_sObject



1349
1350
1351
1352
1353
1354
1355
# File 'lib/rbbt/util/misc.rb', line 1349

def to_s
  str = old_to_s.dup
  if info
    str << "\n" << "Additional Info:\n---\n" << info << "---"
  end
  str
end