Friday 1 July 2016

Fixing Bad Code the Wrong Way

Difficulty:
Easy

Tags:
method_missing, classes

Instructions:
Your coworker did a bad job defining a class. Fix it for him using #method_missing.

Problem and Solution:

Random Boolean

Difficulty:
Elementary
 
Tags:
rand, booleans

Instructions:
Return random booleans.

Problem and Solution:

Thursday 30 June 2016

The Truth

Difficulty:
Elementary

Tags:
booleans

Instructions:
Here's a hint: true equals true.

Problem and Solution:

Introduction

Ruby is a dynamic scripting language. Fairly easy to code and develop applications. Due to It's agility, flexibility and support availability many of the companies are using ruby. One of the popular ruby framework Rails, which is written in ruby completely.

Here, in this blog you can view and discuss many known problems and it's ruby solution. Hope this will help with people who are new to ruby also who solved many of the problems and want to see how it is solved in ruby. Please leave your comments incase if you need any help or want to discuss about any of the specific problems that I posted here