Class: Hocon::Impl::PathParser::Element
- Inherits:
-
Object
- Object
- Hocon::Impl::PathParser::Element
- Defined in:
- lib/hocon/impl/path_parser.rb
Instance Attribute Summary collapse
-
#can_be_empty ⇒ Object
Returns the value of attribute can_be_empty.
-
#sb ⇒ Object
Returns the value of attribute sb.
Instance Method Summary collapse
-
#initialize(initial, can_be_empty) ⇒ Element
constructor
A new instance of Element.
- #to_string ⇒ Object
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_empty ⇒ Object
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 |
#sb ⇒ Object
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_string ⇒ Object
31 32 33 |
# File 'lib/hocon/impl/path_parser.rb', line 31 def to_string "Element(#{@sb.string},#{@can_be_empty})" end |