Class: Mactag::Indexer::App

Inherits:
Object
  • Object
show all
Defined in:
lib/mactag/indexer/app.rb

Constant Summary collapse

PATTERNS =
['app/**/*.rb', 'lib/**/*.rb']

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tag) ⇒ App

Returns a new instance of App.



8
9
10
# File 'lib/mactag/indexer/app.rb', line 8

def initialize(tag)
  @tag = tag
end

Instance Attribute Details

#tagObject (readonly)

Returns the value of attribute tag.



4
5
6
# File 'lib/mactag/indexer/app.rb', line 4

def tag
  @tag
end

Class Method Details

.allObject



14
15
16
17
18
# File 'lib/mactag/indexer/app.rb', line 14

def all
  PATTERNS.map do |pattern|
    new(pattern)
  end
end