class Hocon::ConfigRenderOptions
Attributes
Public Class Methods
Source
# File lib/hocon/config_render_options.rb, line 46 def self.concise Hocon::ConfigRenderOptions.new(false, false, false, true) end
Returns concise render options (no whitespace or comments). For a resolved {@link Config}, the concise rendering will be valid JSON.
@return the concise render options
Source
# File lib/hocon/config_render_options.rb, line 36 def self.defaults Hocon::ConfigRenderOptions.new(true, true, true, true) end
Returns the default render options which are verbose (commented and formatted). See {@link ConfigRenderOptions#concise} for stripped-down options. This rendering will not be valid JSON since it has comments.
@return the default render options
Source
# File lib/hocon/config_render_options.rb, line 6 def initialize(origin_comments, comments, formatted, json, key_value_separator=:equals) @origin_comments = origin_comments @comments = comments @formatted = formatted @json = json @key_value_separator = key_value_separator end
Public Instance Methods
Source
# File lib/hocon/config_render_options.rb, line 22 def formatted? @formatted end
Source
# File lib/hocon/config_render_options.rb, line 16 def origin_comments? @origin_comments end