Reset nil attributes to their default values to make the spec valid
If value
is an instance of class klass
, return it, else create a new instance of klass
with value value
.
Raw Strings are JSON
Objects (the raw bytes are stored in an array for the key “raw”). The Ruby String
can be created by this module method.
Returns true if the element contains inline content that has a text media type.
Returns true if the element contains inline content that has a XML
media type.
Returns true if the element contains inline content encoded in base64.
Processes the topmost available {RequirementState} on the stack @return [void]
@return [ResolutionState] the state whose ‘requirement` is the given
`requirement`.
@return [Array<Object>] the list of requirements that led to
`requirement` being required.
@return [Boolean] whether the current spec is satisfied as a new possibility.
@return [Integer] The index to which the resolution should unwind in the
case of conflict.