Class: Hocon::Impl::Parser::ParseContext::Element
- Inherits:
-
Object
- Object
- Hocon::Impl::Parser::ParseContext::Element
- Defined in:
- lib/hocon/impl/parser.rb
Instance Attribute Summary collapse
-
#sb ⇒ Object
readonly
Returns the value of attribute sb.
Instance Method Summary collapse
-
#initialize(initial, can_be_empty) ⇒ Element
constructor
A new instance of Element.
- #to_s ⇒ Object
Constructor Details
#initialize(initial, can_be_empty) ⇒ Element
Returns a new instance of Element.
79 80 81 82 |
# File 'lib/hocon/impl/parser.rb', line 79 def initialize(initial, can_be_empty) @can_be_empty = can_be_empty @sb = StringIO.new(initial) end |
Instance Attribute Details
#sb ⇒ Object (readonly)
Returns the value of attribute sb.
84 85 86 |
# File 'lib/hocon/impl/parser.rb', line 84 def sb @sb end |
Instance Method Details
#to_s ⇒ Object
86 87 88 |
# File 'lib/hocon/impl/parser.rb', line 86 def to_s "Element(#{sb.string}, #{@can_be_empty})" end |