Class: RBS::Types::Bases::Any
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(location:, todo: false) ⇒ Any
constructor
A new instance of Any.
- #to_s(level = 0) ⇒ Object
Methods inherited from Base
#==, #has_classish_type?, #has_self_type?, #hash, #to_json, #with_nonreturn_void?
Methods included from NoTypeName
Methods included from EmptyEachType
Methods included from NoSubst
Methods included from NoFreeVariables
Constructor Details
#initialize(location:, todo: false) ⇒ Any
Returns a new instance of Any.
110 111 112 113 114 115 |
# File 'lib/rbs/types.rb', line 110 def initialize(location:, todo: false) super(location: location) if todo @string = "__todo__" end end |
Instance Method Details
#to_s(level = 0) ⇒ Object
117 118 119 |
# File 'lib/rbs/types.rb', line 117 def to_s(level=0) @string || "untyped" end |