Skip to content

Instantly share code, notes, and snippets.

@gcao
Created June 11, 2010 15:36
Show Gist options
  • Save gcao/434650 to your computer and use it in GitHub Desktop.
Save gcao/434650 to your computer and use it in GitHub Desktop.
class A
class << self
include Aspect4r
before :test do |input|
puts 'before test'
end
after :test do |result, input|
puts 'after test'
result
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment