Class: MiniHTML::AST::Comment

Inherits:
Base
  • Object
show all
Defined in:
lib/minihtml/ast/comment.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#original_token, #position_end, #position_start

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ Comment

Returns a new instance of Comment.



8
9
10
11
# File 'lib/minihtml/ast/comment.rb', line 8

def initialize(token)
  super
  @literal = token[:literal]
end

Instance Attribute Details

#literalObject

Returns the value of attribute literal.



6
7
8
# File 'lib/minihtml/ast/comment.rb', line 6

def literal
  @literal
end