Object
# File rbs-2.1.0/lib/rbs/types.rb, line 273
def map_type(&block)
if block
Interface.new(
name: name,
args: args.map {|type| yield type },
location: location
)
else
enum_for(:map_type)
end
end
# File rbs-2.1.0/lib/rbs/types.rb, line 265
def map_type_name(&block)
Interface.new(
name: yield(name, location, self),
args: args.map {|type| type.map_type_name(&block) },
location: location
)
end