Class: Markbridge::Parsers::BBCode::TagEndToken
- Defined in:
- lib/markbridge/parsers/bbcode/tokens/tag_end_token.rb
Overview
Token representing a closing BBCode tag like [/b]
Instance Attribute Summary collapse
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Attributes inherited from Token
Instance Method Summary collapse
-
#initialize(tag:, pos:, source:) ⇒ TagEndToken
constructor
A new instance of TagEndToken.
Constructor Details
#initialize(tag:, pos:, source:) ⇒ TagEndToken
Returns a new instance of TagEndToken.
10 11 12 13 |
# File 'lib/markbridge/parsers/bbcode/tokens/tag_end_token.rb', line 10 def initialize(tag:, pos:, source:) super(pos:, source:) @tag = tag.freeze end |
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
8 9 10 |
# File 'lib/markbridge/parsers/bbcode/tokens/tag_end_token.rb', line 8 def tag @tag end |