Skip to content
Browse files

tweakages

  • Loading branch information...
1 parent 7954cf1 commit c70c6fad0c85e90f5de9982ba75cc03fc139ba1d @defunkt defunkt committed Oct 30, 2009
Showing with 5 additions and 5 deletions.
  1. +4 −0 README.md
  2. +1 −5 lib/github/markup.rb
View
4 README.md
@@ -4,3 +4,7 @@ GitHub Markup
require 'github/markup'
GitHub::Markup.render('README.markdown', "* One\n* Two")
+Or, more realistically:
+
+ require 'github/markup'
+ GitHub::Markup.render(file, File.read(file))
View
6 lib/github/markup.rb
@@ -3,12 +3,8 @@ module Markup
extend self
@@markups = {}
- def markups
- @@markups
- end
-
def add_markup(regexp, &block)
- markups[regexp] = block
+ @@markups[regexp] = block
end
def renderer(filename)

0 comments on commit c70c6fa

Please sign in to comment.
Something went wrong with that request. Please try again.