In my program I am using a state machine, and have numerous convenience methods. I am currently creating a long list of "?" methods in the model.
def purchase_ready?
self.current_state == 'purchase_ready'
end
def completed?
self.current_state == 'completed'
end
def region_prepared?
self.current_state == 'region_prepared'
end
What's the metaprogramming way to do this?