Defined?, And, Or, and Not : defined « Method « Ruby






Defined?, And, Or, and Not


defined? 1 # "expression" 
defined? dummy # nil 
defined? printf # "method" 
defined? String # "constant" 
defined? $_ # "globalvariable" 
defined? Math::PI # "constant" 
defined? a = 1 # "assignment" 
defined? 42.abs # "method" 

 








Related examples in the same category