Module: DHS::Inspect

Extended by:
ActiveSupport::Concern
Included in:
Data, Record
Defined in:
lib/dhs/concerns/inspect.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/dhs/concerns/inspect.rb', line 9

def inspect
  [
    [
      [
        [
          to_s.match('DHS::Data') ? 'Data of ' : nil,
          self.class
        ].join,
        _inspect_id
      ].join(' '),
      _inspect_path
    ].compact.join("\n"),
    pretty_raw
  ].compact.join("\n")
end