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