Class: InchByInch::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- InchByInch::RakeTask
- Defined in:
- lib/inch_by_inch/rake_task.rb
Instance Attribute Summary collapse
-
#codebase_dir ⇒ Object
Returns the value of attribute codebase_dir.
-
#failing_grades ⇒ Object
Returns the value of attribute failing_grades.
Instance Method Summary collapse
-
#initialize(task_name = :inch) {|_self| ... } ⇒ RakeTask
constructor
Initializes a rake task.
Constructor Details
#initialize(task_name = :inch) {|_self| ... } ⇒ RakeTask
Initializes a rake task
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_dir ⇒ Object
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_grades ⇒ Object
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 |