lib/legion/extensions/builders/base.rb in legionio-0.4.1 vs lib/legion/extensions/builders/base.rb in legionio-0.4.2

- old
+ new

@@ -19,10 +19,10 @@ def const_defined_two?(item, root = Kernel) root.const_defined?(item.to_s) end def define_constant_two(item, root: Kernel, type: Module) - return true if const_defined?(item, root: root) + return true if root.const_defined?(item) root.const_set(item.to_s, type.new) end def define_get(item, root: Kernel, type: Module)