Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


In how many ways a block is written in Ruby?



In how many ways a block is written in Ruby?..

Answer / Kirti Singh

A Ruby block can be defined in two main ways: 1) using curly braces ({}), and 2) by indenting the code under a method or loop. However, it's important to note that a block is not executed on its own but is passed as an argument to the method or loop that calls it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

what is the difference between put and putc statement?

1 Answers  


What is the difference between nil and false in ruby?

1 Answers  


What are the key features of ruby?

1 Answers  


What does mri most commonly stand for?

1 Answers  


Name different methods for io console in ruby?

1 Answers  


What is the naming conventions for methods that return a boolean result?

1 Answers  


What is ruby software and where and when it is usefull.

1 Answers  


Explain ruby strings.

1 Answers  


What are advantages of using ruby?

1 Answers  


Define ruby methods.

1 Answers  


What is RubyGems in Ruby programming language?

1 Answers  


Explain retry statement in ruby.

1 Answers  


Categories