Class: Yard2steep::Type::UnionType
- Defined in:
- lib/yard2steep/type/ast.rb
Instance Method Summary collapse
-
#initialize(types:) ⇒ UnionType
constructor
A new instance of UnionType.
- #to_s ⇒ String
Constructor Details
Instance Method Details
#to_s ⇒ String
60 61 62 |
# File 'lib/yard2steep/type/ast.rb', line 60 def to_s @types.map { |t| t.to_s }.uniq.join(' | ') end |