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
def name @raw_type.name end
def subtype_of_single?(other)
def subtype_of_single?(other) ther imple _type <= other.raw_type e
def valid?(obj)
def valid?(obj) obj.is_a?(@raw_type) end