Class: Yardcheck::Typedef::Collection

Inherits:
Yardcheck::Typedef show all
Defined in:
lib/yardcheck/typedef.rb

Overview

Literal

Instance Method Summary collapse

Methods inherited from Yardcheck::Typedef

#+, parse

Instance Method Details

#collection_classObject



81
82
83
# File 'lib/yardcheck/typedef.rb', line 81

def collection_class
  collection_const.constant
end

#invalid_const?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


73
74
75
# File 'lib/yardcheck/typedef.rb', line 73

def match?(other)
  Literal.new(collection_const).match?(other)
end

#signatureObject



77
78
79
# File 'lib/yardcheck/typedef.rb', line 77

def signature
  "#{collection_class}<#{member_typedefs.map(&:signature)}>"
end