lib/dentaku/ast/function.rb in dentaku-2.0.9 vs lib/dentaku/ast/function.rb in dentaku-2.0.10
- old
+ new
@@ -44,10 +44,10 @@
self.class.type
end
end
function_class = name.to_s.capitalize
- Dentaku::AST.send(:remove_const, function_class) if Dentaku::AST.const_defined?(function_class)
+ Dentaku::AST.send(:remove_const, function_class) if Dentaku::AST.const_defined?(function_class, false)
Dentaku::AST.const_set(function_class, function)
function.implementation = implementation
function.type = type