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
22 23 24 25 26 27 28 |
# File 'lib/rbs/types.rb', line 22 def each_type if block_given? # nop else enum_for :each_type end end |
#map_type(&block) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/rbs/types.rb', line 30 def map_type(&block) if block _ = self else enum_for(:map_type) end end |