Created
November 26, 2010 13:09
-
-
Save chrislo/716684 to your computer and use it in GitHub Desktop.
This file contains 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 Cucumber | |
module Formatter | |
class Html | |
def initialize | |
end | |
def after_features | |
puts "original after_features" | |
end | |
end | |
end | |
end | |
orig = Cucumber::Formatter::Html.new | |
orig.after_features | |
module Cucumber | |
module Formatter | |
class Html | |
def after_features | |
puts "new after_features" | |
end | |
end | |
end | |
end | |
new = Cucumber::Formatter::Html.new | |
new.after_features | |
# Adding method to instance | |
def new.after_features | |
puts "added it to new" | |
end | |
new.after_features | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment