Sha256: f429b973da5919ed1596e7e73a2c2b12b60066a9037eead1d28693ebfa85a8a1

Contents?: true

Size: 306 Bytes

Versions: 1

Compression:

Stored size: 306 Bytes

Contents

require "tp/version"

module TP
  class Presenter
    def self.present(markdown)
      slides = markdown.split(/^# /).keep_if { |string| string != "" }.map { |string| "# " + string }

      slides.each do |slide|
        print "\e[2J\e[f"
        puts slide
        $stdin.gets
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tp-0.0.1 lib/tp.rb