Method: RBS::Types::UntypedFunction#map_type

Defined in:
lib/rbs/types.rb

#map_type(&block) ⇒ Object



1223
1224
1225
1226
1227
1228
1229
# File 'lib/rbs/types.rb', line 1223

def map_type(&block)
  if block
    update(return_type: yield(return_type))
  else
    enum_for :map_type
  end
end