# File lib/hocon/impl/tokens.rb, line 28 def initialize(value, orig_text = nil) super(TokenType::VALUE, value.origin, orig_text) @value = value end
# File lib/hocon/impl/tokens.rb, line 48 def ==(other) super(other) && other.value == @value end
# File lib/hocon/impl/tokens.rb, line 44 def can_equal(o) o.is_a?(Value) end
# File lib/hocon/impl/tokens.rb, line 52 def hash 41 * (41 + super) + value.hash end
# File lib/hocon/impl/tokens.rb, line 35 def to_s if value.resolve_status == ResolveStatus::RESOLVED "'#{value.unwrapped}' (#{Hocon::ConfigValueType.name(value.value_type)})" else "'<unresolved value>' (#{@value.value_type.name})" end end