Skip to content

Instantly share code, notes, and snippets.

@mix86
Last active September 24, 2015 11:18
Show Gist options
  • Save mix86/0cf75bbf8b433a5cf751 to your computer and use it in GitHub Desktop.
Save mix86/0cf75bbf8b433a5cf751 to your computer and use it in GitHub Desktop.
Задачка
class Developer
# Put your code here
end
class RocketBank
def find_developer(platform: :ruby, region: :moscow)
all_developers(platform, region).select do |you|
you.are.crasy
.and { your.skill_level is :high }
.and { you.are.not :tinkoff }
.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment