Class: RoodiTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- RoodiTask
- Defined in:
- lib/roodi_task.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#name ⇒ Object
Returns the value of attribute name.
-
#patterns ⇒ Object
Returns the value of attribute patterns.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(name = :roodi, patterns = nil, config = nil) {|_self| ... } ⇒ RoodiTask
constructor
A new instance of RoodiTask.
Constructor Details
#initialize(name = :roodi, patterns = nil, config = nil) {|_self| ... } ⇒ RoodiTask
Returns a new instance of RoodiTask.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/roodi_task.rb', line 10 def initialize name = :roodi, patterns = nil, config = nil @name = name @patterns = patterns || [] @config = config @verbose = Rake.application..trace yield self if block_given? define end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
7 8 9 |
# File 'lib/roodi_task.rb', line 7 def config @config end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/roodi_task.rb', line 5 def name @name end |
#patterns ⇒ Object
Returns the value of attribute patterns.
6 7 8 |
# File 'lib/roodi_task.rb', line 6 def patterns @patterns end |
#verbose ⇒ Object
Returns the value of attribute verbose.
8 9 10 |
# File 'lib/roodi_task.rb', line 8 def verbose @verbose end |