Check out example codes for "ruby". It will help you in understanding the concepts better.

Code Example 1

Ruby is a  dynamic, open source programming language with a focus on simplicity and productivity

Code Example 2

Ruby is python but with slightly different syntax

Learn ReactJs, React Native from akashmittal.com