Class: Vcsmap::Plugin::BasePlugin
- Inherits:
-
Object
- Object
- Vcsmap::Plugin::BasePlugin
- Defined in:
- lib/vcsmap/plugins/base_plugin.rb
Direct Known Subclasses
AwsAccessToken, FacebookClientSecrets, FilezillaXml, GithubSublimesettings, GoogleOauth, InstagramTokens, SolrDataconfig, WordpressConfig
Instance Attribute Summary collapse
-
#search_string ⇒ Object
readonly
Returns the value of attribute search_string.
Instance Method Summary collapse
Instance Attribute Details
#search_string ⇒ Object (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 |