Class: Hocon::Impl::ConfigNodeSingleToken

Inherits:
Object
  • Object
show all
Includes:
AbstractConfigNode
Defined in:
lib/hocon/impl/config_node_single_token.rb

Direct Known Subclasses

ConfigNodeComment

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AbstractConfigNode

#==, #hash, #render

Methods included from Parser::ConfigNode

#render

Constructor Details

#initialize(t) ⇒ ConfigNodeSingleToken

Returns a new instance of ConfigNodeSingleToken.



8
9
10
# File 'lib/hocon/impl/config_node_single_token.rb', line 8

def initialize(t)
  @token = t
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



12
13
14
# File 'lib/hocon/impl/config_node_single_token.rb', line 12

def token
  @token
end

Instance Method Details

#tokensObject



14
15
16
# File 'lib/hocon/impl/config_node_single_token.rb', line 14

def tokens
  [@token]
end