Skip to content

Instantly share code, notes, and snippets.

@ywen
Created April 10, 2012 14:02
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 ywen/2351590 to your computer and use it in GitHub Desktop.
Save ywen/2351590 to your computer and use it in GitHub Desktop.
module Presenter
class Person
attr_reader :model
def initialize(model)
@model = model
end
def gender
model.male? ? "Male" : "Female"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment