Class: DMark::Tokens::TagBeginToken

Inherits:
AbstractTagToken show all
Defined in:
lib/dmark/tokens.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractTagToken

#name

Instance Method Summary collapse

Constructor Details

#initialize(name:, attributes:) ⇒ TagBeginToken

Returns a new instance of TagBeginToken.



32
33
34
35
36
# File 'lib/dmark/tokens.rb', line 32

def initialize(name:, attributes:)
  super(name: name)

  @attributes = attributes
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



30
31
32
# File 'lib/dmark/tokens.rb', line 30

def attributes
  @attributes
end

Instance Method Details

#to_sObject



38
39
40
# File 'lib/dmark/tokens.rb', line 38

def to_s
  "TagBegin(#{name.inspect}, #{attributes.inspect})"
end