Class: Rake::TaskLib

Inherits:
Object
  • Object
show all
Includes:
Cloneable
Defined in:
lib/rake/tasklib.rb

Overview

Base class for Task Libraries.

Direct Known Subclasses

PackageTask, RDocTask, TestTask

Instance Method Summary collapse

Methods included from Cloneable

#clone, #dup

Instance Method Details

#paste(a, b) ⇒ Object

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.



18
19
20
# File 'lib/rake/tasklib.rb', line 18

def paste(a,b)              # :nodoc:
  (a.to_s + b.to_s).intern
end