title: Irb Error: undefined method 'split'
body: <p>I recently opened up irb, and now all of a sudden every time I run irb it gives me this error: </p>
  
  <pre><code>load error: /Users/addisonbean/.rvm/rubies/ruby-2.1.2/.irbrc
  NoMethodError: undefined method `split' for nil:NilClass
  /Users/addisonbean/.rvm/scripts/irbrc.rb:45:in `&lt;top (required)&gt;'
  /Users/addisonbean/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /Users/addisonbean/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
  /Users/addisonbean/.rvm/rubies/ruby-2.1.2/.irbrc:11:in `&lt;top (required)&gt;'
  /Users/addisonbean/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/init.rb:236:in `load'
  /Users/addisonbean/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/init.rb:236:in `run_config'
  /Users/addisonbean/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/init.rb:19:in `setup'
  irb(main):001:0&gt;
  </code></pre>
  
  <p>But as I've shown you it still gives me the prompt after all the errors</p>
  
  <p>This is all the code inside of /Users/addisonbean/.rvm/rubies/ruby-2.1.2/.irbrc (the numbers are line numbers)</p>
  
  <pre><code>8  if ENV["rvm_path"].nil?
  9    require File.join(ENV["HOME"], "irbrc")
  10 else
  11   require File.join(ENV["rvm_path"], "scripts", "irbrc")
  12 end
  </code></pre>
  
  <p>And I have no ~/.irbrcw</p>
  
  <p>I would love some help on this, thanks!</p>