Class: Markbridge::Parsers::BBCode::Token
- Inherits:
-
Object
- Object
- Markbridge::Parsers::BBCode::Token
- Defined in:
- lib/markbridge/parsers/bbcode/tokens/token.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#pos ⇒ Object
readonly
Returns the value of attribute pos.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(pos: 0, source: nil) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(pos: 0, source: nil) ⇒ Token
Returns a new instance of Token.
9 10 11 12 |
# File 'lib/markbridge/parsers/bbcode/tokens/token.rb', line 9 def initialize(pos: 0, source: nil) @pos = pos @source = source end |
Instance Attribute Details
#pos ⇒ Object (readonly)
Returns the value of attribute pos.
7 8 9 |
# File 'lib/markbridge/parsers/bbcode/tokens/token.rb', line 7 def pos @pos end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
7 8 9 |
# File 'lib/markbridge/parsers/bbcode/tokens/token.rb', line 7 def source @source end |