I'm relatively new to Ruby and have been trialing Rubymine 6.0.1. I think it's an excellent tool; but I have 1 issue. I cretaed a couple of classes whose initializer takes 2 arguments. But when I instantiate the object I the inspector thinks I've provided two many arguments to the call to new(). Here's an example:
def initialize(log_file_root, verbosity)
logfile = MyLogFile.new('filename.log', true)
logfile2 = MyLogFile.new('filename.log', 'verbose')
Both the creation of "logfile" and "logfile2" give this inspection error. Other similar object initialization for other classes also produces this error.
Have I done something wrong? This is such a basic inpsection I'm surprised it's giving incorrect results.
I'm using RubyMine 6.0.1 on Linux Mint 15 64 bit (running in virtualbox). Java version:
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)