Class: SilverSpurs::App

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/silver_spurs/app.rb

Instance Method Summary collapse

Instance Method Details

#required_vars?(params, requirement_list) ⇒ Boolean

Returns:

  • (Boolean)


88
89
90
# File 'lib/silver_spurs/app.rb', line 88

def required_vars?(params, requirement_list)
  requirement_list.none? { |required_param| params[required_param].nil? }
end