answersLogoWhite

0

Ruby Programming

Ruby was first released in 1995, it is a dynamic, reflective, general purpose object-oriented programming language. It was created by Yukihiro Matsumoto. The language is influenced by a number of languages such as Perl, Smalltalk and others.

49 Questions

Need of constructor in c plus plus?

User Avatar

Asked by Wiki User

There is no specific keyword for a constructor in C++. Simply define and declare a method of the class with the same name as the class and it will be a constructor.

A constructor with no arguments is the default constructor, a constructor with one argument of class type is the copy constructor, and a constructor with one argument of some other type is the conversion constructor. You can provide other overloaded constructors if you want.

What is the default value of register storage class?

User Avatar

Asked by Wiki User

Register storage class is a compiler hint that the variable will be often used, and that it should generate code, if it can, to keep the variable's value in a register.

How many packages available in java?

User Avatar

Asked by Wiki User

A Java package is a mechanism for organizing Java classes into namespaces similar to the modules of Modula. Java packages can be stored in compressed files called JAR files, allowing classes to download faster as a group rather than one at a time. Programmers also typically use packages to organize classes belonging to the same category or providing similar functionality.

· A package provides a unique namespace for the types it contains.

· Classes in the same package can access each other's members.

package is a container in which similar classes are grouped together.

package avoid the redundance of classes. it also provide security to hide the code only by importing the packege which contains the required class.

What are the purpose of programming language Ruby?

User Avatar

Asked by Wiki User

Ruby is a vibrant, philosophical and object-oriented programming language which is easy-to-learn, while Rails is an open source web application framework which runs via the Ruby programming language.

The purpose of Ruby on Rails is to develop websites as well as Web applications with less code and is at least ten times faster compared to a typical Java framework.

How do you know the time in ruby?

User Avatar

Asked by Wiki User

(Time.now) to display the time in Ruby programming.

(.to_s) is appended to (Time.now) to return a string representing the current time.

Time.now.to_s » "Tues Oct 11 07:49:17 PDT 2011"

Why error using dot each function?

User Avatar

Asked by Wiki User

if the object you're trying to use .each on isn't an array, you'll encounter an error.

What is the best free windows IDE for ruby?

User Avatar

Asked by Wiki User

the best free ide is Notepad++

How do you do a nested loop using Qbasic?

User Avatar

Asked by Wiki User

There several methods:

For/Next loop

Do/While/Until loops

You can have Do Loops within Do Loops.

Which is the default variable storage class type in a function?

User Avatar

Asked by Wiki User

Everything is an object, and "typed" based on assignation. Your variable will be given a class when you declare it to be something, and the class will depend on what value you give the variable. It is always an object though, and its class may change if you change its value.

Why does my ruby program give me a disappearing black box?

User Avatar

Asked by Wiki User

By default an rb file is interpreted in a command console, and will open its own unless run from one. If your program doesn't wait, or has an error, it will immediately close the console window which was created for it.

Usually the solution is to run 'cmd' and start your script from there, then the console window will persist.

What is Ruby on Rails used for?

User Avatar

Asked by Wiki User

Ruby on Rails is an ideal web development framework and one of the trending technology, Due to its flexibility accelerated web process, efficient content management, customization, ease of use and low cost. Ruby on Rails web application shows the best security features in the upcoming time and the applications are going to be more secure if the security rules are correctly read and monitored

Upvote this answer if you get something helpful.