Method: ActiveFedora::Core#inspect
- Defined in:
- lib/active_fedora/core.rb
#inspect ⇒ Object
Returns the contents of the record as a nicely formatted string.
96 97 98 99 100 101 102 103 |
# File 'lib/active_fedora/core.rb', line 96 def inspect inspection = ["id: #{id.inspect}"] inspection += self.class.attribute_names.collect do |name| "#{name}: #{attribute_for_inspect(name)}" if has_attribute?(name) end "#<#{self.class} #{inspection.compact.join(', ')}>" end |