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


Tell us in ruby, it explains about the defined operator?



Tell us in ruby, it explains about the defined operator?..

Answer / Priti Vishnoi

The defined operator in Ruby returns information about a given method or variable. It can be used to check if a method is defined and loaded (defined?), if a variable is defined and assigned a value (defined? and instance_variable_defined? for instance variables).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

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  


In how many ways items can be removed from array in Ruby?

1 Answers  


Tell me what is the difference between calling super() and super call?

1 Answers  


Explain how Symbol is different from variables?

1 Answers  


How to use ruby methods.

1 Answers  


Explain about normal method class?

1 Answers  


Tell us how would you implement hash in ruby internally?

1 Answers  


What are the key features of ruby?

1 Answers  


Explain the difference in scope for these two variables: @@name and @name?

1 Answers  


Difference between nil and false in ruby?

1 Answers  


What are the case statement in ruby?

1 Answers  


what is the difference extend and include?

1 Answers  


Categories