class Hocon::Impl::ConfigString
Private Class Methods
new(origin, value)
click to toggle source
Calls superclass method
Hocon::Impl::AbstractConfigValue.new
# File lib/hocon/impl/config_string.rb, line 80 def initialize(origin, value) super(origin) @value = value end
Private Instance Methods
render_value_to_sb(sb, indent_size, at_root, options)
click to toggle source
# File lib/hocon/impl/config_string.rb, line 70 def render_value_to_sb(sb, indent_size, at_root, options) if options.json? sb << ConfigImplUtil.render_json_string(@value) else sb << ConfigImplUtil.render_string_unquoted_if_possible(@value) end end
transform_to_string()
click to toggle source
# File lib/hocon/impl/config_string.rb, line 66 def transform_to_string @value end
unwrapped()
click to toggle source
# File lib/hocon/impl/config_string.rb, line 62 def unwrapped @value end
value_type()
click to toggle source
# File lib/hocon/impl/config_string.rb, line 58 def value_type Hocon::ConfigValueType::STRING end
was_quoted?()
click to toggle source
# File lib/hocon/impl/config_string.rb, line 54 def was_quoted? self.is_a?(Quoted) end