class T::Types::Simple

Validates that an object belongs to the specified class.

def initialize(raw_type)

def initialize(raw_type)
  @raw_type = raw_type
end

def name

@override Base
def name
  @raw_type.name
end

def subtype_of_single?(other)

@override Base
def subtype_of_single?(other)
ther
imple
_type <= other.raw_type
e

def valid?(obj)

@override Base
def valid?(obj)
  obj.is_a?(@raw_type)
end