Skip to content

Instantly share code, notes, and snippets.

@gambala
Created July 22, 2016 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save gambala/66430c7493b633b07b6326f7f4212cc6 to your computer and use it in GitHub Desktop.
Save gambala/66430c7493b633b07b6326f7f4212cc6 to your computer and use it in GitHub Desktop.
Ruby quiz
class Developer
end
class DataBase
def find_developer(platform: :ruby, region: :london)
all_developers(platform, region).select do |you|
you.are.crazy
.and { your.skill_level is :high }
.and { you.are.not.in :plumbee }
.and { you.love 'ruby', 'rails' }
.and { want 'fun', 'money' }
.and.if you do
your work well
end
end
end
private
def all_developers(*_)
[Developer.new]
end
end
@gambala
Copy link
Author

gambala commented Jul 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment