Ruby Programming Language Question: Download Ruby PDF

Explain about the defined operator?

Tweet Share WhatsApp

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 PDF Read All 26 Ruby Questions
Previous QuestionNext Question
Explain about methods?Explain about operators in Ruby?