lib/bio/shell/setup.rb in bio-1.4.3.0001 vs lib/bio/shell/setup.rb in bio-1.5.0

- old
+ new

@@ -3,11 +3,10 @@ # # Copyright:: Copyright (C) 2006 # Toshiaki Katayama <k@bioruby.org> # License:: The Ruby License # -# $Id: setup.rb,v 1.8 2007/06/28 11:21:40 k Exp $ # require 'getoptlong' class Bio::Shell::Setup @@ -23,10 +22,10 @@ # load configuration and plugins Bio::Shell.configure(savedir) # set default to irb mode - Bio::Shell.cache[:mode] = @mode || :irb + Bio::Shell.cache[:mode] = ((defined? @mode) && @mode) || :irb case Bio::Shell.cache[:mode] when :web # setup rails server Bio::Shell::Web.new