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