Class: MCMarkdown::Parser::ShortTag
- Inherits:
-
Object
- Object
- MCMarkdown::Parser::ShortTag
- Defined in:
- lib/mc_markdown/parsers/short_tag.rb
Defined Under Namespace
Classes: Tag
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#formatter ⇒ Object
readonly
Returns the value of attribute formatter.
Instance Method Summary collapse
-
#initialize(content, formatter) ⇒ ShortTag
constructor
A new instance of ShortTag.
- #parsed ⇒ Object
Constructor Details
#initialize(content, formatter) ⇒ ShortTag
Returns a new instance of ShortTag.
9 10 11 12 |
# File 'lib/mc_markdown/parsers/short_tag.rb', line 9 def initialize content, formatter @content = content @formatter = formatter.new end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/mc_markdown/parsers/short_tag.rb', line 6 def content @content end |
#formatter ⇒ Object (readonly)
Returns the value of attribute formatter.
7 8 9 |
# File 'lib/mc_markdown/parsers/short_tag.rb', line 7 def formatter @formatter end |