tasklib.rb 580 B

12345678910111213141516171819202122
  1. require 'rake'
  2. module Rake
  3. # Base class for Task Libraries.
  4. class TaskLib
  5. include Cloneable
  6. include Rake::DSL
  7. # Make a symbol by pasting two strings together.
  8. #
  9. # NOTE: DEPRECATED! This method is kinda stupid. I don't know why
  10. # I didn't just use string interpolation. But now other task
  11. # libraries depend on this so I can't remove it without breaking
  12. # other people's code. So for now it stays for backwards
  13. # compatibility. BUT DON'T USE IT.
  14. def paste(a,b) # :nodoc:
  15. (a.to_s + b.to_s).intern
  16. end
  17. end
  18. end