Sha256: eb712fff9ef8ce52e9e26bfc049c2f6582f62ddd18b407320e4f8f493812414a

Contents?: true

Size: 216 Bytes

Versions: 1

Compression:

Stored size: 216 Bytes

Contents

# -*- coding: utf-8 -*-
=begin rdoc
Markdown::File#refresh_toc
=end

class Markdown::File < ::File

  def slurp
    Markdown::String.new(read.scrub)
  end

  def rewrite_toc
    rewrite(slurp.refresh_toc)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sixarm_ruby_markdown_table_of_contents-2.1.0 lib/sixarm_ruby_markdown_table_of_contents/markdown/file.rb