Class: Hocon::Impl::PathParser::Element

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(initial, can_be_empty) ⇒ Element

Returns a new instance of Element.



24
25
26
27
# File 'lib/hocon/impl/path_parser.rb', line 24

def initialize(initial, can_be_empty)
  @can_be_empty = can_be_empty
  @sb = StringIO.new(initial)
end

Instance Attribute Details

#can_be_emptyObject

Returns the value of attribute can_be_empty.



29
30
31
# File 'lib/hocon/impl/path_parser.rb', line 29

def can_be_empty
  @can_be_empty
end

#sbObject

Returns the value of attribute sb.



29
30
31
# File 'lib/hocon/impl/path_parser.rb', line 29

def sb
  @sb
end

Instance Method Details

#to_stringObject



31
32
33
# File 'lib/hocon/impl/path_parser.rb', line 31

def to_string
  "Element(#{@sb.string},#{@can_be_empty})"
end