Created
September 16, 2016 09:53
-
-
Save Irostovsky/c7d069e9edd71511723587707fff355e to your computer and use it in GitHub Desktop.
Chain task v1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dear Candidate | |
| Thank you for applying for the Ruby on Rails Developer position at Product Madness. In order to take you through to the next stage interview we would like you to complete a short skill text. | |
| With reference to the below red text please add your code instead of the '# Put your code here’ line. You need to implement developer class so DataBase#find_developer method does not fail. Try to add as few lines of code as possible. | |
| class Developer | |
| # Put your code here | |
| 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 |
Author
Irostovsky
commented
Sep 16, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment