Object
# File rbs-2.1.0/lib/rbs/types.rb, line 315
def map_type(&block)
if block
ClassInstance.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 307
def map_type_name(&block)
ClassInstance.new(
name: yield(name, location, self),
args: args.map {|type| type.map_type_name(&block) },
location: location
)
end