Class: Markbridge::AST::Quote
- Defined in:
- lib/markbridge/ast/quote.rb
Overview
Represents a quote/blockquote element.
Instance Attribute Summary collapse
-
#author ⇒ String?
readonly
The author/username of the quote.
-
#post ⇒ String?
readonly
The post ID for Discourse quotes.
-
#topic ⇒ String?
readonly
The topic ID for Discourse quotes.
-
#username ⇒ String?
readonly
The username for Discourse quotes.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(author: nil, post: nil, topic: nil, username: nil) ⇒ Quote
constructor
Create a new Quote element.
Methods inherited from Element
Constructor Details
#initialize(author: nil, post: nil, topic: nil, username: nil) ⇒ Quote
Create a new Quote element.
37 38 39 40 41 42 43 |
# File 'lib/markbridge/ast/quote.rb', line 37 def initialize(author: nil, post: nil, topic: nil, username: nil) super() @author = @post = post @topic = topic @username = username end |
Instance Attribute Details
#author ⇒ String? (readonly)
Returns the author/username of the quote.
20 21 22 |
# File 'lib/markbridge/ast/quote.rb', line 20 def @author end |
#post ⇒ String? (readonly)
Returns the post ID for Discourse quotes.
23 24 25 |
# File 'lib/markbridge/ast/quote.rb', line 23 def post @post end |
#topic ⇒ String? (readonly)
Returns the topic ID for Discourse quotes.
26 27 28 |
# File 'lib/markbridge/ast/quote.rb', line 26 def topic @topic end |
#username ⇒ String? (readonly)
Returns the username for Discourse quotes.
29 30 31 |
# File 'lib/markbridge/ast/quote.rb', line 29 def username @username end |