Class: InchByInch::RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/inch_by_inch/rake_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task_name = :inch) {|_self| ... } ⇒ RakeTask

Initializes a rake task

Parameters:

  • task_name (#to_s) (defaults to: :inch)

    the name of the rake task.

Yields:

  • (_self)

Yield Parameters:



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

def initialize(task_name = :inch)
  @failing_grades = %I(B C)
  @codebase_dir = Dir.pwd

  yield self if block_given?

  install_task(task_name)
end

Instance Attribute Details

#codebase_dirObject

Returns the value of attribute codebase_dir.



9
10
11
# File 'lib/inch_by_inch/rake_task.rb', line 9

def codebase_dir
  @codebase_dir
end

#failing_gradesObject

Returns the value of attribute failing_grades.



8
9
10
# File 'lib/inch_by_inch/rake_task.rb', line 8

def failing_grades
  @failing_grades
end