Skip to content

Commit

Permalink
Rename Delegator module
Browse files Browse the repository at this point in the history
Which was conflicting with something on macOS High Sierra
  • Loading branch information
Unknown committed Nov 27, 2017
1 parent bf6bbf5 commit 68595c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Support/lib/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -94,4 +94,4 @@ class << self
self.target = Commands
end

include Delegator
include CommandDelegator

0 comments on commit 68595c1

Please sign in to comment.