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
#4577
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 redo Statement

Syntax:
redo


Restarts this iteration of the most internal loop, without checking loop condition. Restarts yield or call if called within a block.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4578
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 retry Statement

Syntax:
retry


If retry appears in rescue clause of begin expression, restart from the beginning of the 1begin body
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4579
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  
If retry appears in the iterator, the block, or the body of the for expression, restarts the invocation of the iterator call.

Arguments to the iterator is re-evaluated
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4580
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 considered a pure object-oriented language, because everything appears, to Ruby, as an object.

All Ruby data consists of objects that are instances of some class.

Even a class itself is an object that is an instance of the Class class.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4581
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  
Defining a Class

Classes are created in Ruby with the class keyword:

class Point [< superclass ]
code
end
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#4582
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  
Like most Ruby constructs, a class definition is delimited with an end.

In addition to defining a new class, the class keyword creates a new constant to refer to the class.
 
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