Class: Yoda::Model::Types::AnyType

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

Instance Method Summary collapse

Methods inherited from Base

#==, #map

Instance Method Details

#change_root(paths) ⇒ self

Parameters:

  • paths (Array<Paths>)

Returns:

  • (self)


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

def change_root(paths)
  self
end

#eql?(another) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#hashObject



9
10
11
# File 'lib/yoda/model/types/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/types/any_type.rb', line 21

def resolve(registry)
  []
end

#to_sString

Returns:

  • (String)


26
27
28
# File 'lib/yoda/model/types/any_type.rb', line 26

def to_s
  'any'
end