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

Inherits:
Token
  • Object
show all
Defined in:
lib/hocon/impl/tokens.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(origin, text) ⇒ Comment

Returns a new instance of Comment.



29
30
31
32
# File 'lib/hocon/impl/tokens.rb', line 29

def initialize(origin, text)
  super(TokenType::COMMENT, origin)
  @text = text
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



33
34
35
# File 'lib/hocon/impl/tokens.rb', line 33

def text
  @text
end