Class: Source2MD::Formatter::TypeWarn
- Inherits:
-
Base
- Object
- Base
- Source2MD::Formatter::TypeWarn
show all
- Defined in:
- lib/source2md/formatter/type_warn.rb
Instance Attribute Summary
Attributes inherited from Base
#element
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Class Method Details
.accept?(element) ⇒ Boolean
4
5
6
7
8
|
# File 'lib/source2md/formatter/type_warn.rb', line 4
def self.accept?(element)
if element.body.empty?
element.head["warn"]
end
end
|
Instance Method Details
#to_md ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/source2md/formatter/type_warn.rb', line 10
def to_md
[
":::message",
element.head["warn"],
":::",
] * "\n"
end
|