Helpers

- (Boolean) target_feature?(feature)

Does the target have the feature feature enabled?

Parameters:

  • feature (String, Symbol)

    Specifies a proposed feature.

Returns:

  • (Boolean)

    Returns true if the current target has the features feature and the features is enabled.

- (Symbol) target_name

Return the current build target.

Returns:

  • (Symbol)

    Returns the current build target.

- (Boolean) target_name?(proposal)

Is the current target proposal?

Parameters:

  • proposal (String, Symbol)

    Specifies a proposed target.

Returns:

  • (Boolean)

    Returns true if the current target matches the parameter proposal.

- (String, Nil) target_value(key)

Attempts to return arbitrary key values for the key key for the current target.

Parameters:

  • key (String, Symbol)

    Specifies the desired key to look up.

Returns:

  • (String, Nil)

    Returns the value for key in the :targets structure, or nil if it doesn’t exist.