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.
97 98 99 100 |
# File 'lib/hocon/impl/parser.rb', line 97 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.
102 103 104 |
# File 'lib/hocon/impl/parser.rb', line 102 def sb @sb end |
Instance Method Details
#to_s ⇒ Object
104 105 106 |
# File 'lib/hocon/impl/parser.rb', line 104 def to_s "Element(#{sb.string}, #{@can_be_empty})" end |