Class: RBI::Type::Anything

Inherits:
RBI::Type show all
Defined in:
lib/rbi/type.rb

Overview

‘T.anything`.

Instance Method Summary collapse

Methods inherited from RBI::Type

all, any, anything, attached_class, boolean, class_of, #eql?, generic, #hash, #initialize, #nilable, nilable, #nilable?, #non_nilable, noreturn, parse_node, parse_string, proc, #rbs_string, self_type, shape, simple, t_class, #to_s, tuple, type_parameter, untyped, void

Constructor Details

This class inherits a constructor from RBI::Type

Instance Method Details

#==(other) ⇒ Object

: (BasicObject other) -> bool



54
55
56
# File 'lib/rbi/type.rb', line 54

def ==(other)
  Anything === other
end

#normalizeObject

: -> Type



66
67
68
# File 'lib/rbi/type.rb', line 66

def normalize
  self
end

#simplifyObject

: -> Type



72
73
74
# File 'lib/rbi/type.rb', line 72

def simplify
  self
end

#to_rbiObject

: -> String



60
61
62
# File 'lib/rbi/type.rb', line 60

def to_rbi
  "T.anything"
end