Ruby Programming Language Question:
Download Questions PDF

Explain about the defined operator?

Answer:

Define operator defines whether a passed expression is defined or not. If the expression is defined it returns the description string or null if the expression is not defined. If a variable is defined it gets initialized. If method_call is defined as true then method also gets defined. This is also the same case with super and yield.

Download Ruby Interview Questions And Answers PDF

Previous QuestionNext Question
Explain about methods?Explain about operators in Ruby?