- :logical
defined?
checks if given type is defined
Parameters
defined? type :type :string :word :literal
Returns
Examples
copydefined? :cat ; => false defined? "cat" ; => false defined? 'cat ; => false define :cat [ init: constructor [name :string age :integer] ] defined? :cat ; => true defined? "cat" ; => true defined? 'cat ; => true defined? :dog ; => false