class Class
Public Instance Methods
__tc_collection_root()
click to toggle source
# File lib/typecollection/class+inferred_type.rb, line 2 def __tc_collection_root() root = self while root.superclass && root.superclass.include?(TypeCollection::Base) root = root.superclass end root end
inferred_type()
click to toggle source
# File lib/typecollection/class+inferred_type.rb, line 10 def inferred_type() klass_name = self.name.split("::").last root_name = __tc_collection_root.name.split("::").last klass_name.gsub(root_name, "") end