Class: Lookout::Rake::Tasks::Tags
- Defined in:
- lib/lookout/rake/tasks/tags.rb
Instance Attribute Summary collapse
-
#specification ⇒ Object
readonly
Returns the value of attribute specification.
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(specification = Lookout::Rake::Tasks.specification!) {|_self| ... } ⇒ Tags
constructor
A new instance of Tags.
Constructor Details
#initialize(specification = Lookout::Rake::Tasks.specification!) {|_self| ... } ⇒ Tags
Returns a new instance of Tags.
4 5 6 7 8 |
# File 'lib/lookout/rake/tasks/tags.rb', line 4 def initialize(specification = Lookout::Rake::Tasks.specification!) @specification = specification yield self if block_given? define end |
Instance Attribute Details
#specification ⇒ Object (readonly)
Returns the value of attribute specification.
15 16 17 |
# File 'lib/lookout/rake/tasks/tags.rb', line 15 def specification @specification end |
Instance Method Details
#define ⇒ Object
10 11 12 13 |
# File 'lib/lookout/rake/tasks/tags.rb', line 10 def define require 'rbtags/rake/tasks' RbTags::Rake::Tasks::Tags.new specification.require_paths, specification.lib_files.sort end |