Type
Represents an object type
Finalize by setting up a primitive constraint
@return [Class<Axiom::Types::Object>]
@api private
# File lib/axiom/types/object.rb, line 33 def self.finalize return self if frozen? inherits_from_primitive super end
Infer the type of the object
@example
Axiom::Types::Object.infer(::Object) # => Axiom::Types::Object
@param [Object] object
@return [Class<Axiom::Types::Object>]
returned if the type matches
@return [nil]
returned if the type does not match
@api public
# File lib/axiom/types/object.rb, line 24 def self.infer(object) super || infer_from_primitive_class(object) end
Generated with the Darkfish Rdoc Generator 2.