Class: Vcsmap::Plugin::BasePlugin

Inherits:
Object
  • Object
show all
Defined in:
lib/vcsmap/plugins/base_plugin.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#search_stringObject (readonly)

Returns the value of attribute search_string.



4
5
6
# File 'lib/vcsmap/plugins/base_plugin.rb', line 4

def search_string
  @search_string
end

Instance Method Details

#capture_match(regex, file) ⇒ Object



6
7
8
9
10
# File 'lib/vcsmap/plugins/base_plugin.rb', line 6

def capture_match(regex, file)
  match = regex.match(clean_file(file))
  return '' if match.nil?
  match.captures.first
end