Class: Commons::Lang::Builder::ToSStyle::MultiLineToSStyle

Inherits:
Commons::Lang::Builder::ToSStyle show all
Defined in:
lib/commons/lang/builder/to_s_style.rb

Overview

ToSStyle that outputs on multiple lines.

Constant Summary

Constants inherited from Commons::Lang::Builder::ToSStyle

DEFAULT_STYLE, MULTI_LINE_STYLE, NO_FIELD_NAMES_STYLE, SHORT_PREFIX_STYLE, SIMPLE_STYLE

Instance Method Summary collapse

Methods inherited from Commons::Lang::Builder::ToSStyle

#append, #append_end, #append_start, #append_super, #append_to_s, #register, #registered?, #unregister

Constructor Details

#initializeMultiLineToSStyle

Returns a new instance of MultiLineToSStyle.



465
466
467
468
469
470
471
# File 'lib/commons/lang/builder/to_s_style.rb', line 465

def initialize
  super()
  self.content_start = '{'
  self.field_separator = SystemUtils.line_separator + '  '
  self.field_separator_at_start = true
  self.content_end = SystemUtils.line_separator + '}'
end