Sign up or Sign in | Share
 
ClearMyBench
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Ruby basics (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Ruby basics
#4361
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Whitespace characters such as spaces and tabs are generally ignored in Ruby code, except when they appear in strings.


Sometimes, however, they are used to interpret ambiguous statements.

Interpretations of this sort produce warnings when the -w option is enabled.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4362
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Ruby interprets semicolons and newline characters as the ending of a statement.


However, if Ruby encounters operators, such as +, -, or backslash at the end of a line, they indicate the continuation of a statement
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4363
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Identifiers are names of variables, constants, and methods.

Ruby identifiers are case sensitive.

It means that for instance Ram and RAM are two different itendifiers in Ruby.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4364
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Ruby identifier names may consist of alphanumeric characters and the underscore character ( _ ).
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4365
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
A comment hides a line, part of a line, or several lines from the Ruby interpreter.

We can use the hash character (#) at the beginning of a line:
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4366
ShriNi (User)
Software Techie (PEGA) currently on a Career Break
Platinum Boarder
Posts: 4000
graph
User Offline Click here to see the profile of this user
Gender: Female Location: Secundrabad India Birthdate: 1983-09-29
Re:Ruby basics 3 Years, 10 Months ago Karma: 0  
Ruby is a perfect Object Oriented Programming Language.

The features of the object-oriented programming language include:

Data Encapsulation
Data Abstraction
Polymorphism
Inheritance
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop
logo footer   Copyright 2009 - 2013 HotRecruiter.Com - All Rights Reserved