class T::Types::AttachedClassType
Modeling AttachedClass properly at runtime would require additional tracking, so at runtime we permit all values and rely on the static checker. As AttachedClass is modeled statically as a type member on every singleton class, this is consistent with the runtime behavior for all type members.
Public Class Methods
new()
click to toggle source
# File lib/types/types/attached_class.rb, line 11 def initialize(); end
Public Instance Methods
name()
click to toggle source
@override Base
# File lib/types/types/attached_class.rb, line 14 def name "T.attached_class" end
valid?(obj)
click to toggle source
@override Base
# File lib/types/types/attached_class.rb, line 19 def valid?(obj) true end
Private Instance Methods
subtype_of_single?(other)
click to toggle source
@override Base
# File lib/types/types/attached_class.rb, line 24 def subtype_of_single?(other) case other when AttachedClassType true else false end end