class Hocon::Impl::ConfigNodeInclude
Attributes
children[R]
kind[R]
Public Class Methods
new(children, kind)
click to toggle source
# File lib/hocon/impl/config_node_include.rb, line 10 def initialize(children, kind) @children = children @kind = kind end
Public Instance Methods
name()
click to toggle source
# File lib/hocon/impl/config_node_include.rb, line 25 def name @children.each do |child| if child.is_a?(Hocon::Impl::ConfigNodeSimpleValue) return Hocon::Impl::Tokens.value(child.token).unwrapped end end nil end
tokens()
click to toggle source
# File lib/hocon/impl/config_node_include.rb, line 17 def tokens tokens = [] @children.each do |child| tokens += child.tokens end tokens end