Class: Hocon::Impl::Tokens::UnquotedText

Inherits:
Token
  • Object
show all
Defined in:
lib/hocon/impl/tokens.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(origin, s) ⇒ UnquotedText

Returns a new instance of UnquotedText.



43
44
45
46
# File 'lib/hocon/impl/tokens.rb', line 43

def initialize(origin, s)
  super(TokenType::UNQUOTED_TEXT, origin)
  @value = s
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



47
48
49
# File 'lib/hocon/impl/tokens.rb', line 47

def value
  @value
end

Instance Method Details

#to_sObject



49
50
51
# File 'lib/hocon/impl/tokens.rb', line 49

def to_s
  "'#{value}'"
end