Class: YARD::Tags::TypesExplainer::FixedCollectionType

Inherits:
CollectionType show all
Defined in:
lib/yard/tags/types_explainer.rb

Instance Attribute Summary

Attributes inherited from CollectionType

#types

Attributes inherited from Type

#name

Instance Method Summary collapse

Methods inherited from CollectionType

#initialize

Methods inherited from Type

#initialize

Constructor Details

This class inherits a constructor from YARD::Tags::TypesExplainer::CollectionType

Instance Method Details

#to_s(_singular = true) ⇒ Object



73
74
75
# File 'lib/yard/tags/types_explainer.rb', line 73

def to_s(_singular = true)
  "a#{name[0, 1] =~ /[aeiou]/i ? 'n' : ''} #{name} containing (" + types.map(&:to_s).join(" followed by ") + ")"
end