From 68595c1786abb8bac61bd632f25aaa97f8430292 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 26 Nov 2017 20:37:00 -0800 Subject: [PATCH] Rename Delegator module Which was conflicting with something on macOS High Sierra --- Support/lib/commands.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Support/lib/commands.rb b/Support/lib/commands.rb index 28a0bad..367679b 100755 --- a/Support/lib/commands.rb +++ b/Support/lib/commands.rb @@ -74,12 +74,12 @@ def self.convert_tabs(text,tab_width) end -module Delegator +module CommandDelegator def self.delegate(*methods) methods.each do |method_name| define_method(method_name) do |*args, &block| return super(*args, &block) if respond_to? method_name - Delegator.target.send(method_name, *args, &block) + CommandDelegator.target.send(method_name, *args, &block) end private method_name end @@ -94,4 +94,4 @@ class << self self.target = Commands end -include Delegator +include CommandDelegator