Method: CShadow#inspect
- Defined in:
- lib/cgen/cshadow.rb
#inspect ⇒ Object
:nodoc:
1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 |
# File 'lib/cgen/cshadow.rb', line 1049 def inspect # :nodoc: attrs = [] seen = {self => true} each_attr_value do |attr, value| if seen[value] attrs << "#{attr}=#{value}" else attrs << "#{attr}=#{value.inspect}" end seen[value] = true end super.sub(/(?=>\z)/, " " + attrs.join(", ")) end |