class Hocon::ConfigRenderOptions
Attributes
comments[RW]
formatted[RW]
json[RW]
origin_comments[RW]
Public Class Methods
concise()
click to toggle source
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
# File lib/hocon/config_render_options.rb, line 44 def self.concise Hocon::ConfigRenderOptions.new(false, false, false, true) end
defaults()
click to toggle source
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
# File lib/hocon/config_render_options.rb, line 34 def self.defaults Hocon::ConfigRenderOptions.new(true, true, true, true) end
new(origin_comments, comments, formatted, json)
click to toggle source
# File lib/hocon/config_render_options.rb, line 5 def initialize(origin_comments, comments, formatted, json) @origin_comments = origin_comments @comments = comments @formatted = formatted @json = json end
Public Instance Methods
comments?()
click to toggle source
# File lib/hocon/config_render_options.rb, line 17 def comments? @comments end
formatted?()
click to toggle source
# File lib/hocon/config_render_options.rb, line 20 def formatted? @formatted end
json?()
click to toggle source
# File lib/hocon/config_render_options.rb, line 23 def json? @json end
origin_comments?()
click to toggle source
# File lib/hocon/config_render_options.rb, line 14 def origin_comments? @origin_comments end