Class: Yoda::Model::TypeExpressions::Base Abstract

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

Overview

This class is abstract.

Instance Method Summary collapse

Instance Method Details

#==(another) ⇒ Object



6
7
8
# File 'lib/yoda/model/type_expressions/base.rb', line 6

def ==(another)
  eql?(another)
end

#change_root(new_lexical_context) ⇒ Base

This method is abstract.

Parameters:

Returns:



13
14
15
# File 'lib/yoda/model/type_expressions/base.rb', line 13

def change_root(new_lexical_context)
  fail NotImplementedError
end

#map {|_self| ... } ⇒ Base

Yields:

  • (_self)

Yield Parameters:

Returns:



38
39
40
# File 'lib/yoda/model/type_expressions/base.rb', line 38

def map
  yield self
end

#resolve(registry) ⇒ Array<Store::Objects::Base>

This method is abstract.

Parameters:

  • registry (Registry)

Returns:



20
21
22
# File 'lib/yoda/model/type_expressions/base.rb', line 20

def resolve(registry)
  fail NotImplementedError
end

#to_rbs_type(env) ⇒ RBS::Types::Bases::Base, ...

This method is abstract.

Parameters:

Returns:

  • (RBS::Types::Bases::Base, RBS::Types::Variable, RBS::Types::ClassSingleton, RBS::Types::Interface, RBS::Types::ClassInstance, RBS::Types::Alias, RBS::Types::Tuple, RBS::Types::Record, RBS::Types::Optional, RBS::Types::Union, RBS::Types::Intersection, RBS::Types::Function, RBS::Types::Block, RBS::Types::Proc, RBS::Types::Literal)


33
34
35
# File 'lib/yoda/model/type_expressions/base.rb', line 33

def to_rbs_type(env)
  fail NotImplementedError
end

#to_sString

This method is abstract.

Returns:

  • (String)


26
27
28
# File 'lib/yoda/model/type_expressions/base.rb', line 26

def to_s
  fail NotImplementedError
end