Class: Source2MD::Formatter::TypeParseInclude
- Inherits:
-
Base
- Object
- Base
- Source2MD::Formatter::TypeParseInclude
show all
- Defined in:
- lib/source2md/formatter/type_parse_include.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
|
# File 'lib/source2md/formatter/type_parse_include.rb', line 4
def self.accept?(element)
element.head["parse_include"]
end
|
Instance Method Details
#to_md ⇒ Object
8
9
10
|
# File 'lib/source2md/formatter/type_parse_include.rb', line 8
def to_md
Generator.new(files: element.head["parse_include"]).to_md.strip
end
|