Class: MiniHTML::AST::Literal

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

Instance Attribute Summary collapse

Attributes inherited from Base

#original_token, #position_end, #position_start

Instance Method Summary collapse

Constructor Details

#initialize(token) ⇒ Literal



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

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

Instance Attribute Details

#valueObject

Returns the value of attribute value.



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

def value
  @value
end