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.



1376
1377
1378
# File 'lib/rbbt/util/misc.rb', line 1376

def info
  @info
end

Instance Method Details

#old_to_sObject



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

alias old_to_s to_s

#to_sObject



1379
1380
1381
1382
1383
1384
1385
# File 'lib/rbbt/util/misc.rb', line 1379

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