This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
require 'haml' | |
class HamlConverter < Converter | |
safe true | |
priority :low | |
def matches(ext) | |
ext =~ /haml/i | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ruby -rmath_functions.rb -e "puts MathFunctions.factorial(2)" | |
2 | |
> ruby --test -rmath_functions.rb | |
. | |
Finished in 1.000706 seconds. | |
1 tests, 2 assertions, 0 failures, 0 errors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Module | |
alias_method :include_without_hooks, :include | |
def include(*modules) | |
include_before_hook(*modules) | |
include_without_hooks(*modules) | |
include_after_hook(*modules) | |
end | |
def include_before_hook(*modules) |