Class: Lolcommits::Tranzlate

Inherits:
Plugin
  • Object
show all
Extended by:
Lolspeak
Defined in:
lib/lolcommits/plugins/tranzlate.rb

Constant Summary

Constants included from Lolspeak

Lolspeak::LOL_DICTIONARY

Instance Attribute Summary

Attributes inherited from Plugin

#options, #runner

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Lolspeak

tranzlate

Methods inherited from Plugin

#configuration, #configure_options!, #debug, #execute, #initialize, #is_configured?, #is_enabled?, #puts, #valid_configuration?

Constructor Details

This class inherits a constructor from Lolcommits::Plugin

Class Method Details

.nameObject



109
110
111
# File 'lib/lolcommits/plugins/tranzlate.rb', line 109

def self.name
  'tranzlate'
end

Instance Method Details

#runObject



103
104
105
106
107
# File 'lib/lolcommits/plugins/tranzlate.rb', line 103

def run
  debug "Commit message before: #{self.runner.message}"
  self.runner.message = self.class.tranzlate(self.runner.message)
  debug "Commit message after: #{self.runner.message}"
end