Class: Hocon::Impl::Tokens::Comment::DoubleSlashComment
- Inherits:
-
Hocon::Impl::Tokens::Comment
- Object
- Hocon::Impl::Tokens::Comment
- Hocon::Impl::Tokens::Comment::DoubleSlashComment
- Defined in:
- lib/hocon/impl/tokens.rb
Instance Attribute Summary
Attributes inherited from Hocon::Impl::Tokens::Comment
Instance Method Summary collapse
-
#initialize(origin, text) ⇒ DoubleSlashComment
constructor
A new instance of DoubleSlashComment.
- #token_text ⇒ Object
Methods inherited from Hocon::Impl::Tokens::Comment
#==, #can_equal, #hash, #to_s
Constructor Details
#initialize(origin, text) ⇒ DoubleSlashComment
Returns a new instance of DoubleSlashComment.
204 205 206 |
# File 'lib/hocon/impl/tokens.rb', line 204 def initialize(origin, text) super(origin, text) end |
Instance Method Details
#token_text ⇒ Object
208 209 210 |
# File 'lib/hocon/impl/tokens.rb', line 208 def token_text "//" + @text end |