Class: MiniHTML::AST::Comment
Instance Attribute Summary collapse
-
#literal ⇒ Object
Returns the value of attribute literal.
Attributes inherited from Base
#original_token, #position_end, #position_start
Instance Method Summary collapse
-
#initialize(token) ⇒ Comment
constructor
A new instance of Comment.
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
#literal ⇒ Object
Returns the value of attribute literal.
6 7 8 |
# File 'lib/minihtml/ast/comment.rb', line 6 def literal @literal end |