Class: RBI::Type::All
Overview
A type that is intersection of multiple types like ‘T.all(String, Integer)`.
Instance Attribute Summary
Attributes inherited from Composite
Instance Method Summary collapse
-
#to_rbi ⇒ Object
: -> String.
Methods inherited from Composite
Methods inherited from RBI::Type
#==, all, any, anything, attached_class, boolean, class_of, #eql?, generic, #hash, #initialize, #nilable, nilable, #nilable?, #non_nilable, noreturn, parse_node, parse_string, proc, #rbs_string, self_type, shape, simple, t_class, #to_s, tuple, type_parameter, untyped, void
Constructor Details
This class inherits a constructor from RBI::Type::Composite
Instance Method Details
#to_rbi ⇒ Object
: -> String
255 256 257 |
# File 'lib/rbi/type.rb', line 255 def to_rbi "T.all(#{@types.map(&:to_rbi).join(", ")})" end |