Skip to content

Instantly share code, notes, and snippets.

@pete-otaqui
Forked from chrislo/Monkey patching
Created November 26, 2010 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pete-otaqui/716702 to your computer and use it in GitHub Desktop.
Save pete-otaqui/716702 to your computer and use it in GitHub Desktop.
module Cucumber
module Formatter
class Html
def initialize(step_mother, path_or_io, options)
end
def after_features
puts "original after_features"
end
end
end
end
orig = Cucumber::Formatter::Html.new('a','b','c')
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('a','b','c')
new.after_features
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment