Module: WsdlMapper::Runtime::SimplerInspect
Overview
This module contains a non-recursive implementation of #inspect to prevent
pollution of an irb
console with 20000 lines of inspect
Instance Method Summary (collapse)
Instance Method Details
- (Object) inspect
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/wsdl_mapper/runtime/simpler_inspect.rb', line 6 def inspect vars = instance_variables.map do |iv| next if iv.to_s[0, 2] == '@_' val = instance_variable_get iv "#{iv}: #{val}" end vars = vars.compact * ', ' "#<#{self.class.name} #{vars}>" end |