Class: Source2MD::Section
- Inherits:
-
Object
- Object
- Source2MD::Section
- Defined in:
- lib/source2md/section.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ Section
constructor
A new instance of Section.
- #to_md ⇒ Object
Constructor Details
#initialize(content) ⇒ Section
Returns a new instance of Section.
3 4 5 |
# File 'lib/source2md/section.rb', line 3 def initialize(content) @content = content end |
Instance Method Details
#to_md ⇒ Object
7 8 9 |
# File 'lib/source2md/section.rb', line 7 def to_md elements.collect(&:to_md).compact * "\n\n" end |