I wonder — is it possible to create private helpers for rake tasks, no matter how I try to do it they end up being available in the in the global scope and also are available as methods of any object. For example:
## this is what I need
module MyRakeHelpers
def helper_1
end
def helper_2
end
end
include RakeHelpers
task :sometask do
helper_1
helper_2
end
## And this should not work:
# global scope
helper_1
"a random object".helper_1
class RandomClass
def foo
helper_1
end
end