lib/steep/interface/method.rb in steep-0.3.0 vs lib/steep/interface/method.rb in steep-0.4.0

- old
+ new

@@ -46,9 +46,19 @@ super_method: super_method, attributes: attributes ) end + def with_types(types) + self.class.new( + type_name: type_name, + name: name, + types: types, + super_method: super_method, + attributes: attributes + ) + end + def include_in_chain?(method) (method.type_name == type_name && method.name == name && method.types == types && method.attributes == attributes) ||