Method: ConfCtl::NixFormat#initialize

Defined in:
lib/confctl/nix_format.rb

#initialize(sort: true) ⇒ NixFormat

Returns a new instance of NixFormat.

Parameters:

  • sort (Boolean) (defaults to: true)

    sort hash keys



14
15
16
17
18
# File 'lib/confctl/nix_format.rb', line 14

def initialize(sort: true)
  @sort = sort
  @output = ''
  @level = 0
end