Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/carps/email/config.rb

Instance Method Summary collapse

Instance Method Details

#members?(elements) ⇒ Boolean

Like member? but for array of members.

Returns:

  • (Boolean)


33
34
35
36
# File 'lib/carps/email/config.rb', line 33

def members? elements
   present = elements.map {|field| member? field}
   present.all?
end