Skip to content

Instantly share code, notes, and snippets.

@chrislo
Created November 26, 2010 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chrislo/716684 to your computer and use it in GitHub Desktop.
Save chrislo/716684 to your computer and use it in GitHub Desktop.
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