Module: RBS::Types::EmptyEachType
- Included in:
- Bases::Base, Literal, Variable
- Defined in:
- lib/rbs/types.rb,
sig/types.rbs
Instance Method Summary collapse
- #each_type {|arg0| ... } ⇒ Object
-
#map_type {|arg0| ... } ⇒ Object
map_typereturns itself, because there is no sub type.
Instance Method Details
#each_type ⇒ void #each_type ⇒ Enumerator[t, void]
24 25 26 27 28 29 30 |
# File 'lib/rbs/types.rb', line 24 def each_type if block_given? # nop else enum_for :each_type end end |
#map_type ⇒ self #map_type ⇒ Enumerator[t, self]
map_type returns itself, because there is no sub type.
79 80 81 82 83 84 85 |
# File 'sig/types.rbs', line 79 def map_type(&block) if block _ = self else enum_for(:map_type) end end |