Class: Yoda::Model::TypeExpressions::AnyType

Inherits:
Base
  • Object
show all
Defined in:
lib/yoda/model/type_expressions/any_type.rb

Instance Method Summary collapse

Methods inherited from Base

#==, #map

Instance Method Details

#change_root(paths) ⇒ self

Parameters:

Returns:

  • (self)


15
16
17
# File 'lib/yoda/model/type_expressions/any_type.rb', line 15

def change_root(paths)
  self
end

#eql?(another) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/yoda/model/type_expressions/any_type.rb', line 5

def eql?(another)
  another.is_a?(AnyType)
end

#hashObject



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>

Parameters:

  • registry (Registry)

Returns:



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_sString

Returns:

  • (String)


30
31
32
# File 'lib/yoda/model/type_expressions/any_type.rb', line 30

def to_s
  'untyped'
end