class Yard2steep::Type::UnionType
Public Class Methods
new(types:)
click to toggle source
# File lib/yard2steep/type/ast.rb, line 54 def initialize(types:) Util.assert! { types.size > 0 } @types = types end
Public Instance Methods
to_s()
click to toggle source
@return [String]
# File lib/yard2steep/type/ast.rb, line 60 def to_s @types.map { |t| t.to_s }.uniq.join(' | ') end