Skip to content

Instantly share code, notes, and snippets.

@anthonybishopric
Created May 31, 2011 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anthonybishopric/1000979 to your computer and use it in GitHub Desktop.
Save anthonybishopric/1000979 to your computer and use it in GitHub Desktop.
How to make Anthony happy
class You < Person
include Transportation
state_machine :wednesday_night, :initial => :no_plans do
before_transition :no_plans => :making_anthony_happy, :do => :come_to_dukegen_pitch_at_rocketspace!
end
def come_to_dukegen_pitch_at_rocketspace!
at '2011-06-01 18:00:00' do
MUNI("Fremont", "Howard") || drive_to(parking_near("Fremont", "Howard"))
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment