Operator and Looping Structures in ROR

Asked By 20 points N/A Posted on -
qa-featured

Dear friends

What are the operators, environment variables and looping structures available in Ruby On Rails?

Thanks

SHARE
Answered By 95 points N/A #109884

Operator and Looping Structures in ROR

qa-featured

Operators in ROR

There are many types operators available in ROR (Ruby on Rails). They are take a part as-

Arithmetic operators

Comparison operators

Assignment operators

Ruby parallel assignment

Bitwise operator

Ruby logical operators

Ternary Operator

Range operators

Ruby defined operators

dot "." and double Colon "::" Operators

Ruby environment variables

There are three default variables environment in Ruby on Rails (ROR). They are-

    development
    test
    production

Here each environment has contains a corresponding environment life. You can choose any of the variables of environment within your perposes.

Looping structures/Control structures.

Here are the loping structures of Ruby on Rails are listed-

if,

else,

case,

unless.

Learn more about Ruby on rails here-  https://en.wikipedia.org/wiki/Ruby_on_Rails and guides.rubyonrails.org/getting_started.html

 

Related Questions