Method: XRD::ResourceDescriptor#inspect

Defined in:
lib/xrd/resource_descriptor.rb

#inspectString

Returns a String representation of the resource descriptor object’s state.

Returns:

  • (String)

    The resource descriptor object’s state, as a String.



115
116
117
118
119
120
# File 'lib/xrd/resource_descriptor.rb', line 115

def inspect
  sprintf(
    "#<%s:%#0x SUBJECT:%s>",
    self.class.to_s, self.object_id, self.subject
  )
end