Class: Lookout::Rake::Tasks::Tags

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/lookout/rake/tasks/tags.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(specification = Lookout::Rake::Tasks.specification!) {|_self| ... } ⇒ Tags

Returns a new instance of Tags.

Yields:

  • (_self)

Yield Parameters:



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

#specificationObject (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

#defineObject



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