Skip to content

Instantly share code, notes, and snippets.

@dyoder
Created November 7, 2008 05:24
Show Gist options
  • Save dyoder/22784 to your computer and use it in GitHub Desktop.
Save dyoder/22784 to your computer and use it in GitHub Desktop.
dog.rb
class Dog
attr_accessor :request
def initialize( request )
@request = request
end
def get
“Fido” if request.path == ‘/name’
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment