Method: PEROBS::Object#inspect
- Defined in:
- lib/perobs/Object.rb
#inspect ⇒ String
Textual dump for debugging purposes
186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/perobs/Object.rb', line 186 def inspect "<#{self.class}:#{@_id}>\n{\n" + _all_attributes.map do |attr| ivar = ('@' + attr.to_s).to_sym if (value = instance_variable_get(ivar)).respond_to?(:is_poxreference?) " #{attr} => <PEROBS::ObjectBase:#{value._id}>" else " #{attr} => #{value.inspect}" end end.join(",\n") + "\n}\n" end |