OSDN Git Service

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