# File lib/rye/box.rb, line 461 461: def method_missing(cmd, *args, &block) 462: if cmd == :to_ary 463: super 464: elsif @rye_safe 465: ex = Rye::CommandNotFound.new(cmd.to_s) 466: raise ex unless @rye_exception_hook.has_key? ex.class 467: @rye_exception_hook[Rye::CommandNotFound].call ex 468: else 469: if block.nil? 470: run_command cmd, *args 471: else 472: ex = Rye::CommandNotFound.new(cmd.to_s) 473: raise ex unless @rye_exception_hook.has_key? ex.class 474: end 475: end 476: end