Permalink
Browse files

Simplified.

  • Loading branch information...
1 parent 5fec03c commit f0732d738488fb775647f26947a32c287da5f284 @postmodern committed Jul 19, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/markdown.rb
View
@@ -1,5 +1,5 @@
-require 'ffi/sundown/document'
+unless defined?(:Markdown)
+ require 'ffi/sundown/document'
-unless Object.const_defined?(:Markdown)
- Object.const_set(:Markdown,FFI::Sundown::Document)
+ Markdown ||= FFI::Sundown::Document
end

0 comments on commit f0732d7

Please sign in to comment.