Class: YARD::Tags::TypesExplainer::HashCollectionType Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Type
|
|
Instance Chain:
self,
Type
|
|
Inherits: |
YARD::Tags::TypesExplainer::Type
|
Defined in: | lib/yard/tags/types_explainer.rb |
Class Method Summary
- .new(name, key_types, value_types) ⇒ HashCollectionType constructor Internal use only
Type
- Inherited
Instance Attribute Summary
Instance Method Summary
Instance Attribute Details
#key_types (rw)
[ GitHub ]# File 'lib/yard/tags/types_explainer.rb', line 80
attr_accessor :key_types, :value_types
#value_types (rw)
[ GitHub ]# File 'lib/yard/tags/types_explainer.rb', line 80
attr_accessor :key_types, :value_types
Instance Method Details
#to_s(_singular = true)
[ GitHub ]# File 'lib/yard/tags/types_explainer.rb', line 88
def to_s(_singular = true) "a#{name[0, 1] =~ /[aeiou]/i ? 'n' : ''} #{name} with keys made of (" + list_join(key_types.map {|t| t.to_s(false) }) + ") and values of (" + list_join(value_types.map {|t| t.to_s(false) }) + ")" end