Class: Yoda::Model::TypeExpressions::VoidType
- Defined in:
- lib/yoda/model/type_expressions/void_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/void_type.rb', line 15 def change_root(paths) self end |
#eql?(another) ⇒ Boolean
5 6 7 |
# File 'lib/yoda/model/type_expressions/void_type.rb', line 5 def eql?(another) false end |
#hash ⇒ Object
9 10 11 |
# File 'lib/yoda/model/type_expressions/void_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/void_type.rb', line 21 def resolve(registry) [] end |
#to_rbs_type(env) ⇒ Object
26 27 28 |
# File 'lib/yoda/model/type_expressions/void_type.rb', line 26 def to_rbs_type(env) RBS::Types::Bases::Void.new(location: nil) end |
#to_s ⇒ String
31 32 33 |
# File 'lib/yoda/model/type_expressions/void_type.rb', line 31 def to_s 'void' end |