Class: Stark::Parser::AST::Comment

Inherits:
Node
  • Object
show all
Defined in:
lib/stark/ast.rb,
lib/stark/raw_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ Comment

Returns a new instance of Comment.



359
360
361
# File 'lib/stark/raw_parser.rb', line 359

def initialize(text)
  @text = text
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



362
363
364
# File 'lib/stark/raw_parser.rb', line 362

def text
  @text
end

Instance Method Details

#accept(obj) ⇒ Object



54
55
# File 'lib/stark/ast.rb', line 54

def accept(obj)
end