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.



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

def info
  @info
end

Instance Method Details

#old_to_sObject



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

alias old_to_s to_s

#to_sObject



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

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