Class: Hocon::Impl::Tokens::Comment::DoubleSlashComment

Inherits:
Hocon::Impl::Tokens::Comment show all
Defined in:
lib/hocon/impl/tokens.rb

Instance Attribute Summary

Attributes inherited from Hocon::Impl::Tokens::Comment

#text

Instance Method Summary collapse

Methods inherited from Hocon::Impl::Tokens::Comment

#==, #can_equal, #hash, #to_s

Constructor Details

#initialize(origin, text) ⇒ DoubleSlashComment

Returns a new instance of DoubleSlashComment.



203
204
205
# File 'lib/hocon/impl/tokens.rb', line 203

def initialize(origin, text)
  super(origin, text)
end

Instance Method Details

#token_textObject



207
208
209
# File 'lib/hocon/impl/tokens.rb', line 207

def token_text
  "//" + @text
end