Module: MachineTag

Defined in:
lib/machine_tag/tag.rb,
lib/machine_tag/set.rb,
lib/machine_tag/version.rb

Overview

Library for using Machine Tags.

Defined Under Namespace

Classes: Set, Tag

Constant Summary collapse

PREFIX =

The regular expression for matching the individual namespace and predicate portions of a machine tag

Returns:

  • (Regexp)

    the regular expression for matching the individual namespace and predicate portions of a machine tag

/[a-z][a-z0-9_]*/i
NAMESPACE_AND_PREDICATE =

The regular expression for matching the namespace and predicate portion of a machine tag

Returns:

  • (Regexp)

    the regular expression for matching the namespace and predicate portion of a machine tag

/(?<namespace>#{PREFIX}):(?<predicate>#{PREFIX})/
MACHINE_TAG =

The regular expression for matching a machine tag

Returns:

  • (Regexp)

    the regular expression for matching a machine tag

/^(?<namespace_and_predicate>#{NAMESPACE_AND_PREDICATE})=(?<value>.*)$/
VERSION =

The version of this library.

"1.1.3"