Class: YARD::Tags::TypesExplainer::FixedCollectionType
- Inherits:
-
CollectionType
- Object
- Type
- CollectionType
- YARD::Tags::TypesExplainer::FixedCollectionType
- Defined in:
- lib/yard/tags/types_explainer.rb
Instance Attribute Summary
Attributes inherited from CollectionType
Attributes inherited from Type
Instance Method Summary collapse
Methods inherited from CollectionType
Methods inherited from Type
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 |