File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class FunctionRegistry
1212 def initialize ( functions , alert_color :)
1313 functions = functions . transform_keys ( &:to_s )
1414
15- @environment = BasicObject . new
15+ @environment = Object . new
1616 @global_functions = functions . keys
1717 @functions_by_name = functions . transform_keys do |signature |
1818 index = signature . index ( '(' )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def ==(other)
3838
3939 # @return [Integer]
4040 def hash
41- @hash ||= id . nil? ? signature . hash : id . hash
41+ @hash ||= id . nil? ? signature . hash : [ environment , id ] . hash
4242 end
4343
4444 # @return [Function]
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def ==(other)
2525
2626 # @return [Integer]
2727 def hash
28- @hash ||= id . hash
28+ @hash ||= [ environment , id ] . hash
2929 end
3030
3131 # @return [Mixin]
You can’t perform that action at this time.
0 commit comments