class Hocon::Impl::ConfigString

Constants

ConfigImplUtil

Attributes

value[R]

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 81
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 71
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 67
def transform_to_string
  @value
end
unwrapped() click to toggle source
# File lib/hocon/impl/config_string.rb, line 63
def unwrapped
  @value
end
value_type() click to toggle source
# File lib/hocon/impl/config_string.rb, line 59
def value_type
  Hocon::ConfigValueType::STRING
end
was_quoted?() click to toggle source
# File lib/hocon/impl/config_string.rb, line 55
def was_quoted?
  self.is_a?(Quoted)
end