Class: Hocon::Impl::Tokens::Comment
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(origin, text) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(origin, text) ⇒ Comment
26 27 28 29 |
# File 'lib/hocon/impl/tokens.rb', line 26 def initialize(origin, text) super(TokenType::COMMENT, origin) @text = text end |
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
30 31 32 |
# File 'lib/hocon/impl/tokens.rb', line 30 def text @text end |