Class: Yoda::Model::TypeExpressions::AnyType
- Defined in:
- lib/yoda/model/type_expressions/any_type.rb
Instance Method Summary collapse
- #change_root(paths) ⇒ self
- #eql?(another) ⇒ Boolean
- #hash ⇒ Object
- #resolve(registry) ⇒ Array<Store::Objects::Base>
- #to_rbs_type(_env) ⇒ Object
- #to_s ⇒ String
Methods inherited from Base
Instance Method Details
#change_root(paths) ⇒ self
15 16 17 |
# File 'lib/yoda/model/type_expressions/any_type.rb', line 15 def change_root(paths) self end |
#eql?(another) ⇒ Boolean
5 6 7 |
# File 'lib/yoda/model/type_expressions/any_type.rb', line 5 def eql?(another) another.is_a?(AnyType) end |
#hash ⇒ Object
9 10 11 |
# File 'lib/yoda/model/type_expressions/any_type.rb', line 9 def hash [self.class.name].hash end |
#resolve(registry) ⇒ Array<Store::Objects::Base>
21 22 23 |
# File 'lib/yoda/model/type_expressions/any_type.rb', line 21 def resolve(registry) [] end |
#to_rbs_type(_env) ⇒ Object
25 26 27 |
# File 'lib/yoda/model/type_expressions/any_type.rb', line 25 def to_rbs_type(_env) RBS::Types::Bases::Any.new(location: nil) end |
#to_s ⇒ String
30 31 32 |
# File 'lib/yoda/model/type_expressions/any_type.rb', line 30 def to_s 'untyped' end |