svenfuchs/cl

View on GitHub
bin/readme

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby
$: << File.expand_path('../../lib', __FILE__)

require 'erb'

def example(path)
  str = File.read("examples/#{path}")
  str.lines.drop_while { |line| line !~ /(module|class)/ }.join
end

erb = ERB.new(File.read('var/README.erb.md'), nil, '-')
puts erb.result