A module that adds type lookup to a class
Returns a descendant based on a name or class
@example
MyClass.determine_type('String') # => MyClass::String
@param [Class, to_s] class_or_name
name of a class or a class itself
@return [Class]
a descendant
@return [nil]
nil if the type cannot be determined by the class_or_name
@api public
# File lib/support/type_lookup.rb, line 34 def determine_type(class_or_name) @type_lookup_cache[class_or_name] ||= determine_type_and_cache(class_or_name) end
Generated with the Darkfish Rdoc Generator 2.