Class: Source2MD::Formatter::Base
- Inherits:
-
Object
- Object
- Source2MD::Formatter::Base
- Defined in:
- lib/source2md/formatter/base.rb
Direct Known Subclasses
TypeAlert, TypeCodeBlock, TypeCodeInclude, TypeElse, TypeEval, TypeHidden, TypeInlineImage, TypeList, TypeMdHeader, TypeMethod, TypeNop, TypeParseInclude, TypePartialCode, TypeQuote, TypeRawInclude, TypeSourceBlock, TypeTable, TypeText, TypeTitle, TypeUrlList, TypeWarn
Instance Attribute Summary collapse
-
#element ⇒ Object
readonly
Returns the value of attribute element.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element) ⇒ Base
constructor
A new instance of Base.
- #to_md ⇒ Object
Constructor Details
#initialize(element) ⇒ Base
Returns a new instance of Base.
10 11 12 |
# File 'lib/source2md/formatter/base.rb', line 10 def initialize(element) @element = element end |
Instance Attribute Details
#element ⇒ Object (readonly)
Returns the value of attribute element.
8 9 10 |
# File 'lib/source2md/formatter/base.rb', line 8 def element @element end |
Class Method Details
.accept?(element) ⇒ Boolean
4 5 6 |
# File 'lib/source2md/formatter/base.rb', line 4 def self.accept?(element) false end |
Instance Method Details
#to_md ⇒ Object
14 15 16 |
# File 'lib/source2md/formatter/base.rb', line 14 def to_md raise NotImplementedError, "#{__method__} is not implemented" end |