Module: Qonfig::Plugins::PrettyPrint::SettingsMixin Private

Included in:
Settings
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.21.0



69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/qonfig/plugins/pretty_print/mixin.rb', line 69

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