Class: Commento::Scrapers::Ruby

Inherits:
Object
  • Object
show all
Defined in:
lib/commento/scrapers/ruby.rb

Constant Summary collapse

COMMENTO_MATCH_REGEXP =
/^[ \t]*# commento:.+$/.freeze

Instance Method Summary collapse

Constructor Details

#initializeRuby

'fantasy_sports.points' => [
  'app/services/some_service.rb:11'
  'app/services/some_another_service.rb:12'
]

key - table_name.column_name values - lines of files where these columns are changed in the code



17
18
19
# File 'lib/commento/scrapers/ruby.rb', line 17

def initialize
  @data = {}
end

Instance Method Details

#callObject



21
22
23
24
# File 'lib/commento/scrapers/ruby.rb', line 21

def call
  configuration.include_folders.each { |include_folder| iterate_folder(include_folder) }
  @data
end