class Vcsmap::Plugin::BasePlugin
Attributes
search_string[R]
Public Instance Methods
capture_match(regex, file)
click to toggle source
# 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
Private Instance Methods
clean_file(file)
click to toggle source
# File lib/vcsmap/plugins/base_plugin.rb, line 14 def clean_file(file) file.scrub end