Ruby Basics Flashcards
Is Ruby purely OOP Language? Why?
Ruby is purely object oriented programming language. Each and every value is an object. Every object has a class and every class has a super class. Every code has their properties and actions. Ruby is influenced with Smalltalk language. Rules applying to objects applies to the entire Ruby.
What are the Primitive datatypes in Ruby?
There are no primitive data types in Ruby. Every value is an object, even literals are turned into objects:
What type of Inheritance Ruby will support?
Single class inheritance. Ruby does not have multiple inheritance. Ruby has something similar though: mixins.
Who are the authors of Ruby and Rails?
Ruby - Yukihiro Matsumoto
Rails - David Heinemeier Hansson
Why Ruby is known as a language of flexibility?
Ruby is known as a language of flexibility because it facilitates its author to alter the programming elements. Some specific parts of the language can be removed or redefined. Ruby does not restrict the user.