class Hocon::Impl::ConfigString
Constants
- ConfigImplUtil
Attributes
Private Class Methods
Source
# File lib/hocon/impl/config_string.rb, line 81 def initialize(origin, value) super(origin) @value = value end
Calls superclass method
Hocon::Impl::AbstractConfigValue::new
Private Instance Methods
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
Source
# File lib/hocon/impl/config_string.rb, line 67 def transform_to_string @value end
Source
# File lib/hocon/impl/config_string.rb, line 59 def value_type Hocon::ConfigValueType::STRING end
Source
# File lib/hocon/impl/config_string.rb, line 55 def was_quoted? self.is_a?(Quoted) end