Skip to content

Instantly share code, notes, and snippets.

@mskyle
Last active March 20, 2017 20:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mskyle/984d66533430af03ed8dcdb98ecc88a0 to your computer and use it in GitHub Desktop.
Save mskyle/984d66533430af03ed8dcdb98ecc88a0 to your computer and use it in GitHub Desktop.
require 'date'
class Officiant
def willing_to_officiate_wedding?(groom, bride, date, location)
if busy?(date)
return false
end
if too_far?(location)
return false
end
if !think_should_get_married?(groom, bride)
return false
end
if not_really_interested || generally_too_busy # we understand!
return false
end
if is_minister_of_the_gospel? || willing_to_get_ordained_online? # it's easy and free
return true
end
return false
end
end
dan_pickett = Officiant.new
location = "Portland, Maine"
date = Date.new(2017, 11, 4) # it's a Saturday, ceremony probably around 4PM
dan_pickett.willing_to_officiate_wedding?(zach, kyle, date, location)
@zachjyoung
Copy link

There'll be BBQ and good times

@mskyle
Copy link
Author

mskyle commented Mar 20, 2017

@dpickett - we know this is kind of a crazy request (and a goofy way to ask!) but as we try to figure out how we want our wedding ceremony to work we kept coming back to this problem of who would be the officiant - we wanted someone who was a good speaker, and someone who's equally important to both of us. You were there right at the beginning of our relationship (and without Launch and by extension you we probably would never have met), and if you're interested we would love to have you officiate our wedding (obviously there would be some details to work out).

Please let us know if this script returns true!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment