lib/steep/interface/builder.rb in steep-0.6.0 vs lib/steep/interface/builder.rb in steep-0.7.0

- old
+ new

@@ -225,21 +225,21 @@ end sig.members.each do |member| case member when AST::Signature::Members::Include - member_name = signatures.find_module(member.name, current_module: AST::Namespace.root).name + member_name = signatures.find_module(member.name, current_module: namespace).name build_module(member_name).yield_self do |module_interface| merge_mixin(module_interface, [], methods: methods, supers: supers, ivars: {}, current: namespace) end when AST::Signature::Members::Extend - member_name = signatures.find_module(member.name, current_module: AST::Namespace.root).name + member_name = signatures.find_module(member.name, current_module: namespace).name build_instance(member_name, with_initialize: false).yield_self do |module_interface| merge_mixin(module_interface, member.args.map {|type| absolute_type(type, current: namespace) }, methods: methods, ivars: {}, @@ -328,20 +328,20 @@ methods.merge!(instantiated.methods) sig.members.each do |member| case member when AST::Signature::Members::Include - member_name = signatures.find_module(member.name, current_module: AST::Namespace.root).name + member_name = signatures.find_module(member.name, current_module: namespace).name build_module(member_name).yield_self do |module_interface| merge_mixin(module_interface, member.args.map {|type| absolute_type(type, current: namespace) }, methods: methods, ivars: ivar_chains, supers: supers, current: namespace) end when AST::Signature::Members::Extend - member_name = signatures.find_module(member.name, current_module: AST::Namespace.root).name + member_name = signatures.find_module(member.name, current_module: namespace).name build_instance(member_name, with_initialize: false).yield_self do |module_interface| merge_mixin(module_interface, member.args.map {|type| absolute_type(type, current: namespace) }, methods: methods, ivars: ivar_chains,