From 7eb7e14fbccd80f4c19afa177884adc5f86d2444 Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Wed, 30 Aug 2017 16:03:45 -0400 Subject: [PATCH] Remove trailing whitespace. --- lib/cmock_plugin_manager.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cmock_plugin_manager.rb b/lib/cmock_plugin_manager.rb index eb8f9e8..8da6756 100644 --- a/lib/cmock_plugin_manager.rb +++ b/lib/cmock_plugin_manager.rb @@ -2,12 +2,12 @@ # CMock Project - Automatic Mock Generation for C # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams # [Released under MIT License. Please refer to license.txt for details] -# ========================================== +# ========================================== class CMockPluginManager attr_accessor :plugins - + def initialize(config, utils) @plugins = [] plugins_to_load = [:expect, config.plugins].flatten.uniq.compact @@ -25,7 +25,7 @@ class CMockPluginManager end @plugins.sort! {|a,b| a.priority <=> b.priority } end - + def run(method, args=nil) if args.nil? return @plugins.collect{ |plugin| plugin.send(method) if plugin.respond_to?(method) }.flatten.join @@ -33,7 +33,7 @@ class CMockPluginManager return @plugins.collect{ |plugin| plugin.send(method, args) if plugin.respond_to?(method) }.flatten.join end end - + def camelize(lower_case_and_underscored_word) lower_case_and_underscored_word.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase } end