Module: Qonfig::Plugins::PrettyPrint::DataSetMixin Private

Included in:
DataSet
Defined in:
lib/qonfig/plugins/pretty_print/mixin.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 0.21.0

Instance Method Summary collapse

Instance Method Details

#pretty_print(pp) ⇒ void

This method returns an undefined value.

Parameters:

  • pp (?)

    Suitable for Ruby’s PP module

Since:

  • 0.19.0



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/qonfig/plugins/pretty_print/mixin.rb', line 14

def pretty_print(pp)
  pp.object_address_group(self) do
    pp.seplist(keys, proc { pp.text(',') }) do |key|
      pp.breakable(' ')
      pp.group(1) do
        pp.text(key)
        pp.text(':')
        pp.breakable
        pp.pp(self[key])
      end
    end
  end
end