Class: Hocon::Impl::ConfigNodeSingleToken
- Inherits:
-
Object
- Object
- Hocon::Impl::ConfigNodeSingleToken
- Includes:
- AbstractConfigNode
- Defined in:
- lib/hocon/impl/config_node_single_token.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(t) ⇒ ConfigNodeSingleToken
constructor
A new instance of ConfigNodeSingleToken.
- #tokens ⇒ Object
Methods included from AbstractConfigNode
Methods included from Parser::ConfigNode
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
#token ⇒ Object (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
#tokens ⇒ Object
14 15 16 |
# File 'lib/hocon/impl/config_node_single_token.rb', line 14 def tokens [@token] end |