Class: RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- RakeTask
- Defined in:
- lib/vendor/thor/spec/rake_compat_spec.rb
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize ⇒ RakeTask
Returns a new instance of RakeTask.
8 9 10 |
# File 'lib/vendor/thor/spec/rake_compat_spec.rb', line 8 def initialize define end |
Instance Method Details
#define ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vendor/thor/spec/rake_compat_spec.rb', line 12 def define $main.instance_eval do desc "Say it's cool" task :cool do puts "COOL" end namespace :hiper_mega do task :super do puts "HIPER MEGA SUPER" end end end end |