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...


What is a symbol in ruby?



What is a symbol in ruby?..

Answer / Arun Kumar Yadav

A Symbol in Ruby is an object that represents an identifier (a string that starts with a colon and contains only alphanumeric characters, underscores, or colons). They are used as keys in hashes and for method names.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Explain how Symbol is different from variables?

1 Answers  


How would you create getter and setter methods in ruby?

1 Answers  


What are the data types in ruby?

1 Answers  


Explain about ruby code blocks?

1 Answers  


In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?

1 Answers  


What is the difference between “#==” and “#equal?”

1 Answers  


What is mvc and why do we use it?

1 Answers  


Explain some differences between ruby and python.

1 Answers  


Write the command to get installed Ruby version in your system?

1 Answers  


Explain about normal method class?

1 Answers  


How is class methods defined in ruby?

1 Answers  


What is the difference between a statement and an expression in ruby?

1 Answers  


Categories