Class: Hocon::Impl::Tokens::Comment::HashComment

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) ⇒ HashComment

Returns a new instance of HashComment.



213
214
215
# File 'lib/hocon/impl/tokens.rb', line 213

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

Instance Method Details

#token_textObject



217
218
219
# File 'lib/hocon/impl/tokens.rb', line 217

def token_text
  "#" + @text
end