Method: Nugrant::Helper::Env::Exporter.valid?

Defined in:
lib/nugrant/helper/env/exporter.rb

.valid?(exporter) ⇒ Boolean

Returns true if the exporter name received is a valid valid export, false otherwise.

Parameters:

  • exporter

    The exporter name to check validity

Returns:

  • (Boolean)

    true if exporter is valid, false otherwise.

[View source]

22
23
24
# File 'lib/nugrant/helper/env/exporter.rb', line 22

def self.valid?(exporter)
  VALID_EXPORTERS.include?(exporter)
end