Explain about the defined operator?

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online Ruby Job Interview Questions And Answers