Class: Yardcheck::Typedef::Collection
- Inherits:
-
Yardcheck::Typedef
- Object
- Yardcheck::Typedef
- Yardcheck::Typedef::Collection
- Defined in:
- lib/yardcheck/typedef.rb
Overview
Literal
Instance Method Summary collapse
Methods inherited from Yardcheck::Typedef
Instance Method Details
#collection_class ⇒ Object
81 82 83 |
# File 'lib/yardcheck/typedef.rb', line 81 def collection_class collection_const.constant end |
#invalid_const? ⇒ Boolean
85 86 87 |
# File 'lib/yardcheck/typedef.rb', line 85 def invalid_const? !collection_const.valid? || member_typedefs.any?(&:invalid_const?) end |
#match?(other) ⇒ Boolean
73 74 75 |
# File 'lib/yardcheck/typedef.rb', line 73 def match?(other) Literal.new(collection_const).match?(other) end |
#signature ⇒ Object
77 78 79 |
# File 'lib/yardcheck/typedef.rb', line 77 def signature "#{collection_class}<#{member_typedefs.map(&:signature)}>" end |