Module: Deep::Hash::Struct::PP::Dashboard

Included in:
Dashboard
Defined in:
lib/deep/hash/struct/pp/dashboard.rb,
lib/deep/hash/struct/pp/dashboard/table.rb,
lib/deep/hash/struct/pp/dashboard/table/row.rb

Defined Under Namespace

Modules: Table

Instance Method Summary collapse

Instance Method Details

#inspectObject



6
7
8
# File 'lib/deep/hash/struct/pp/dashboard.rb', line 6

def inspect
    "#<#{self.class.name.split("::").last}>"
end

#pretty_print(q) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/deep/hash/struct/pp/dashboard.rb', line 10

def pretty_print(q)
  q.group(2, "#(#{self.class.name}:#{sprintf("0x%x", object_id)} {", "})") do
    q.breakable

    q.group(2, ":tables => [", "]") do
      q.breakable
      q.seplist(tables) do |table|
        q.pp table
      end
      q.breakable
    end

    q.breakable
  end
end