METHODS
new
creates new Cupt::Cache::Relation objectParameters:
relation_string - bare relation string (examples: "nlkt", "nlkt (>= 0.3.1)"
stringify
method, returns canonical stringified form of the relationstringify_relation_expression
free subroutine, returns canonical stringified form of the ``Relation expression''Parameters:
relation_expression - ``Relation expression'' to stringify
stringify_relation_expressions
free subroutine, returns canonical stringified form of the ``Relation expression'''s as a lineParameters:
relation_expressions - [ ``Relation expression'' ... ]
satisfied_by
method, returns whether is this relation satisfied with the supplied version of the relation's packageParameters:
version_string - version string to check
parse_relation_expression
free subroutine, parses relation expression in string form, builds ``Relation expression'' and returns itparse_relation_line
free subroutine, parses line of relation expressions, builds array of ``Relation expression''s and returns reference to itRelation expression
Can be in two forms:- relation, which stands for single relation
- [ relation ... ], which stands for relation OR group, where only one of relations need to be satisfied
where
relation - Cupt::Cache::Relation object