class YARD::Tags::TypesExplainer::CollectionType
@private
Attributes
Public Class Methods
Source
# File lib/yard/tags/types_explainer.rb, line 61 def initialize(name, types) @name = name @types = types end
Public Instance Methods
Source
# File lib/yard/tags/types_explainer.rb, line 66 def to_s(_singular = true) "a#{name[0, 1] =~ /[aeiou]/i ? 'n' : ''} #{name} of (" + list_join(types.map {|t| t.to_s(false) }) + ")" end