Module: Laser::Parsers::Annotation::UnionType2
- Defined in:
- lib/laser/annotation_parser/annotations_parser.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) rest_members
507 508 509 |
# File 'lib/laser/annotation_parser/annotations_parser.rb', line 507 def rest_members super.elements.map(&:non_union_type) end |
- (Object) type
503 504 505 |
# File 'lib/laser/annotation_parser/annotations_parser.rb', line 503 def type Types::UnionType.new([non_union_type, *rest_members].map(&:type)) end |