Class: DMark::Tokens::TagBeginToken
- Inherits:
-
AbstractTagToken
- Object
- Token
- AbstractTagToken
- DMark::Tokens::TagBeginToken
- Defined in:
- lib/dmark/tokens.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Attributes inherited from AbstractTagToken
Instance Method Summary collapse
-
#initialize(name:, attributes:) ⇒ TagBeginToken
constructor
A new instance of TagBeginToken.
- #to_s ⇒ Object
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
#attributes ⇒ Object (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_s ⇒ Object
38 39 40 |
# File 'lib/dmark/tokens.rb', line 38 def to_s "TagBegin(#{name.inspect}, #{attributes.inspect})" end |