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

- old
+ new

@@ -22,10 +22,14 @@ other.types == types && other.super_method == super_method && other.attributes == attributes end + def incompatible? + attributes.include?(:incompatible) + end + def closed? types.all?(&:closed?) end def subst(s) @@ -54,9 +58,13 @@ name: name, types: types, super_method: super_method, attributes: attributes ) + end + + def map_types + with_types(types.map {|type| yield type }) end def include_in_chain?(method) (method.type_name == type_name && method.name == name &&