Method: RBS::Types::Intersection#sub

Defined in:
lib/rbs/types.rb

#sub(s) ⇒ Object



546
547
548
549
# File 'lib/rbs/types.rb', line 546

def sub(s)
  self.class.new(types: types.map {|ty| ty.sub(s) },
                 location: location)
end