lib/rbs/definition.rb in rbs-1.8.1 vs lib/rbs/definition.rb in rbs-2.0.0.pre1

- old
+ new

@@ -153,9 +153,18 @@ accessibility: @accessibility, alias_of: alias_of ) end + def map_type_bound(&block) + self.class.new( + super_method: super_method&.map_type_bound(&block), + defs: defs.map {|defn| defn.update(type: defn.type.map_type_bound(&block)) }, + accessibility: @accessibility, + alias_of: alias_of + ) + end + def map_method_type(&block) self.class.new( super_method: super_method, defs: defs.map {|defn| defn.update(type: yield(defn.type)) }, accessibility: @accessibility,