Class: Yoda::Model::TypeExpressions::Base Abstract
- Inherits:
-
Object
- Object
- Yoda::Model::TypeExpressions::Base
- Defined in:
- lib/yoda/model/type_expressions/base.rb
Overview
This class is abstract.
Direct Known Subclasses
AnyType, DuckType, FunctionType, GenericType, InstanceType, ModuleType, SelfType, SequenceType, UnionType, UnknownType, ValueType, VoidType
Instance Method Summary collapse
- #==(another) ⇒ Object
- #change_root(new_lexical_context) ⇒ Base abstract
- #map {|_self| ... } ⇒ Base
- #resolve(registry) ⇒ Array<Store::Objects::Base> abstract
- #to_rbs_type(env) ⇒ RBS::Types::Bases::Base, ... abstract
- #to_s ⇒ String abstract
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.
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
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.
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.
33 34 35 |
# File 'lib/yoda/model/type_expressions/base.rb', line 33 def to_rbs_type(env) fail NotImplementedError end |
#to_s ⇒ String
This method is abstract.
26 27 28 |
# File 'lib/yoda/model/type_expressions/base.rb', line 26 def to_s fail NotImplementedError end |