Module: LHS::Inspect

Extended by:
ActiveSupport::Concern
Included in:
Data, Record
Defined in:
lib/lhs/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/lhs/concerns/inspect.rb', line 9

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