Skip to content

Instantly share code, notes, and snippets.

@mikebaldry
Created November 23, 2012 15:04
Show Gist options
  • Select an option

  • Save mikebaldry/4136039 to your computer and use it in GitHub Desktop.

Select an option

Save mikebaldry/4136039 to your computer and use it in GitHub Desktop.
class Model
def duration=(value)
self.float_duration = process(value)
end
def duration
unprocess(self.float_duration)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment