Class: RBS::Types::Bases::Any

Inherits:
Base
  • Object
show all
Defined in:
lib/rbs/types.rb

Instance Attribute Summary

Attributes inherited from Base

#location

Instance Method Summary collapse

Methods inherited from Base

#==, #has_classish_type?, #has_self_type?, #hash, #initialize, #to_json, #with_nonreturn_void?

Methods included from NoTypeName

#map_type_name

Methods included from EmptyEachType

#each_type, #map_type

Methods included from NoSubst

#sub

Methods included from NoFreeVariables

#free_variables

Constructor Details

This class inherits a constructor from RBS::Types::Bases::Base

Instance Method Details

#to_s(level = 0) ⇒ Object



110
111
112
# File 'lib/rbs/types.rb', line 110

def to_s(level=0)
  @string || "untyped"
end

#todo!Object



114
115
116
117
# File 'lib/rbs/types.rb', line 114

def todo!
  @string = '__todo__'
  self
end