Class: Spellr::RakeTask

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/spellr/rake_task.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, default_argv) ⇒ RakeTask

Returns a new instance of RakeTask.



16
17
18
19
20
21
22
# File 'lib/spellr/rake_task.rb', line 16

def initialize(name, default_argv)
  @name = name
  @default_argv = default_argv

  describe_task
  define_task
end

Class Method Details

.generate_task(name = :spellr, *default_argv) ⇒ Object

rubocop:disable



10
11
12
13
14
# File 'lib/spellr/rake_task.rb', line 10

def self.generate_task(name = :spellr, *default_argv) # rubocop:disable
  new(name, default_argv)

  name
end