2007-12-20 22:22:43 -05:00
|
|
|
require 'rake'
|
|
|
|
|
|
|
|
module Rake
|
|
|
|
|
|
|
|
# Base class for Task Libraries.
|
|
|
|
class TaskLib
|
|
|
|
include Cloneable
|
2011-06-23 18:11:55 -04:00
|
|
|
include Rake::DSL
|
2007-12-20 22:22:43 -05:00
|
|
|
|
2008-09-17 21:17:04 -04:00
|
|
|
# Make a symbol by pasting two strings together.
|
|
|
|
#
|
|
|
|
# NOTE: DEPRECATED! This method is kinda stupid. I don't know why
|
|
|
|
# I didn't just use string interpolation. But now other task
|
|
|
|
# libraries depend on this so I can't remove it without breaking
|
|
|
|
# other people's code. So for now it stays for backwards
|
|
|
|
# compatibility. BUT DON'T USE IT.
|
2014-07-14 23:07:37 -04:00
|
|
|
#--
|
|
|
|
# TODO: Remove in Rake 11
|
2013-10-11 17:35:01 -04:00
|
|
|
def paste(a, b) # :nodoc:
|
2007-12-20 22:22:43 -05:00
|
|
|
(a.to_s + b.to_s).intern
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|