Skip to content

Commit

Permalink
Ruby Hooks: Presentation as given at STL Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
booch committed Nov 8, 2016
1 parent d3ed8ae commit 6b4488c
Show file tree
Hide file tree
Showing 6 changed files with 994 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Ruby_Hooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Ruby Hooks
==========

This is a presentation about Ruby hooks.


Resources
---------

* [Slide show][current_slides] (current/working version)


---

[current_slides]: https://rawgit.com/booch/presentations/master/Ruby_Hooks/slides.html
18 changes: 18 additions & 0 deletions Ruby_Hooks/Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
task default: %w[slides]

task slides: ['clean', 'slides.html']

task :clean do
%x[rm -f *.html]
end

rule '.html' => ['.md'] do |t|
require 'erb'
template = File.read('slides.html.erb')
File.open(t.name, 'w') do |file|
BODY = File.read(t.source)
TITLE = BODY.lines.find{ |line| line =~ /^#+\s*/ }.chomp.sub(/^#+\s*/, '')
file.write(ERB.new(template).result(binding))
end
end

5 changes: 5 additions & 0 deletions Ruby_Hooks/remark-latest.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 6b4488c

Please sign in to comment.