class Hocon::Impl::Tokens::Value
Attributes
Public Class Methods
Source
# File lib/hocon/impl/tokens.rb, line 30 def initialize(value, orig_text = nil) super(TokenType::VALUE, value.origin, orig_text) @value = value end
Calls superclass method
Public Instance Methods
Source
# File lib/hocon/impl/tokens.rb, line 50 def ==(other) super(other) && other.value == @value end
Calls superclass method
Source
# File lib/hocon/impl/tokens.rb, line 54 def hash 41 * (41 + super) + value.hash end
Calls superclass method
Source
# File lib/hocon/impl/tokens.rb, line 37 def to_s if value.resolve_status == ResolveStatus::RESOLVED "'#{value.unwrapped}' (#{Hocon::ConfigValueType.value_type_name(value.value_type)})" else "'<unresolved value>' ((#{Hocon::ConfigValueType.value_type_name(value.value_type)})" end end