module RBS::Types::EmptyEachType
Public Instance Methods
() { (t) → void } → void
() → Enumerator[t, void]
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 24 def each_type if block_given? # nop else enum_for :each_type end end
() { (t) → t } → self
() → Enumerator[t, self]
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 32 def map_type(&block) if block _ = self else enum_for(:map_type) end end
map_type returns itself, because there is no sub type.