Honor Kernel#require #to_s arugments
This commit is contained in:
parent
27bb86ef51
commit
bde4705f40
1 changed files with 2 additions and 1 deletions
|
@ -65,13 +65,14 @@ module Mutant
|
|||
|
||||
# Require file in zombie namespace
|
||||
#
|
||||
# @param [String] logical_name
|
||||
# @param [#to_s] logical_name
|
||||
#
|
||||
# @return [self]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def require(logical_name)
|
||||
logical_name = logical_name.to_s
|
||||
@highjack.original.call(logical_name)
|
||||
return unless include?(logical_name)
|
||||
@zombified << logical_name
|
||||
|
|
Loading…
Reference in a new issue