Ruby/Method/defined
Материал из Wiki.crossplatform.ru
Версия от 17:10, 26 мая 2010; (Обсуждение)
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"