Class: CodeStats::Tasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- CodeStats::Tasks
- Defined in:
- lib/code_stats/tasks.rb
Instance Attribute Summary collapse
-
#building_block ⇒ Object
Returns the value of attribute building_block.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(options = {}) ⇒ Tasks
constructor
A new instance of Tasks.
- #stats ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Tasks
Returns a new instance of Tasks.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/code_stats/tasks.rb', line 10 def initialize( = {}) self. = root_dir = __DIR_REL__(caller.find{|c| c=~/Rakefile/}) [:directories] ||= 'lib' [:directories] = Array([:directories]) [:directories].map! do |dir| File.(File.join(root_dir, dir)) end self.building_block = building_block define end |
Instance Attribute Details
#building_block ⇒ Object
Returns the value of attribute building_block.
8 9 10 |
# File 'lib/code_stats/tasks.rb', line 8 def building_block @building_block end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/code_stats/tasks.rb', line 8 def @options end |