lib/rye/box.rb in rye-0.9.3 vs lib/rye/box.rb in rye-0.9.4

- old
+ new

@@ -457,10 +457,12 @@ end # A handler for undefined commands. # Raises Rye::CommandNotFound exception. def method_missing(cmd, *args, &block) - if @rye_safe + if cmd == :to_ary + super + elsif @rye_safe ex = Rye::CommandNotFound.new(cmd.to_s) raise ex unless @rye_exception_hook.has_key? ex.class @rye_exception_hook[Rye::CommandNotFound].call ex else if block.nil?