Parent

Files

Axiom::Types::Object

Represents an object type

Public Class Methods

finalize() click to toggle source

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(object) click to toggle source

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
inspect() click to toggle source

The type name and primitive

@return [String]

@api public

# File lib/axiom/types/object.rb, line 44
def self.inspect
  "#{base} (#{primitive})"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.