Module: RBS::Types::EmptyEachType
- Included in:
- Bases::Base, ClassSingleton, Literal, Variable
- Defined in:
- lib/rbs/types.rb
Instance Method Summary collapse
Instance Method Details
#each_type ⇒ Object
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(&block) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/rbs/types.rb', line 32 def map_type(&block) if block _ = self else enum_for(:map_type) end end |