Skip to content

Instantly share code, notes, and snippets.

@andreacfm
Created July 2, 2011 11:10
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 andreacfm/1059940 to your computer and use it in GitHub Desktop.
Save andreacfm/1059940 to your computer and use it in GitHub Desktop.
post_instance_eval
module andrea
module my_module
def self.configure
yield
end
def self.set(arg)
puts arg
end
end
end
#anywhere in my program initializers
include andrea
my_module.configure do
set "my setting"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment