Class: Yoda::Model::Types::UnknownType
- Defined in:
- lib/yoda/model/types/unknown_type.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #change_root(path) ⇒ self
- #eql?(another) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name = 'unknown') ⇒ UnknownType
constructor
A new instance of UnknownType.
- #resolve(registry) ⇒ Array<YARD::CodeObjects::Base>
- #to_s ⇒ String
Methods inherited from Base
Constructor Details
#initialize(name = 'unknown') ⇒ UnknownType
Returns a new instance of UnknownType.
8 9 10 |
# File 'lib/yoda/model/types/unknown_type.rb', line 8 def initialize(name = 'unknown') @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/yoda/model/types/unknown_type.rb', line 5 def name @name end |
Instance Method Details
#change_root(path) ⇒ self
23 24 25 |
# File 'lib/yoda/model/types/unknown_type.rb', line 23 def change_root(path) self end |
#eql?(another) ⇒ Boolean
13 14 15 |
# File 'lib/yoda/model/types/unknown_type.rb', line 13 def eql?(another) another.is_a?(UnknownType) end |
#hash ⇒ Object
17 18 19 |
# File 'lib/yoda/model/types/unknown_type.rb', line 17 def hash [self.class.name, name].hash end |
#resolve(registry) ⇒ Array<YARD::CodeObjects::Base>
29 30 31 |
# File 'lib/yoda/model/types/unknown_type.rb', line 29 def resolve(registry) [] end |
#to_s ⇒ String
34 35 36 |
# File 'lib/yoda/model/types/unknown_type.rb', line 34 def to_s 'any' end |