class Flaginator
:flags:
:test: :compile: # Equivalent to [test][compile]['*'] -- i.e. same extra flags for all test executables - -foo - -Wall :link: # Equivalent to [test][link]['*'] -- i.e. same flags for all test executables - --bar - --baz
Public Instance Methods
Source
# File lib/ceedling/flaginator.rb, line 43 def flag_down(context:, operation:, filepath:nil, default:[]) flags = @config_matchinator.get_config(primary:@section, secondary:context, tertiary:operation) if flags == nil then return default # Flatten to handle list-nested YAML aliasing (should have already been flattened during validation) elsif flags.is_a?(Array) then return flags.flatten elsif flags.is_a?(Hash) arg_hash = { hash: flags, filepath: filepath, section: @section, context: context, operation: operation } return @config_matchinator.matches?(**arg_hash) end # Handle unexpected config element type return [] end
Source
# File lib/ceedling/flaginator.rb, line 39 def flags_defined?(context:, operation:nil) return @config_matchinator.config_include?(primary:@section, secondary:context, tertiary:operation) end