Create a gist now

Instantly share code, notes, and snippets.

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 initilizers
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