diff --git a/Rakefile b/Rakefile index 8fb17eb4..7f57b4a7 100644 --- a/Rakefile +++ b/Rakefile @@ -113,20 +113,18 @@ VALGRIND_MEMORYFILL_OPTIONS = [ GDB_OPTIONS = [] task :console do |task| - cmd = ["irb", "-r './lib/nmatrix.rb'"] - run *cmd + run("irb", "-r './lib/nmatrix.rb'") end task :pry do |task| - cmd = ["pry", "-r './lib/nmatrix.rb'"] - run *cmd + run("pry", "-r './lib/nmatrix.rb'") end namespace :pry do task valgrind: [:compile] do |task| cmd = ["valgrind"] + VALGRIND_OPTIONS cmd += ["ruby", "-Ilib:ext", "-r './lib/nmatrix.rb'", "-r 'pry'", "-e 'binding.pry'"] - run *cmd + run(*cmd) end end diff --git a/lib/nmatrix/io/point_cloud.rb b/lib/nmatrix/io/point_cloud.rb index b711768e..66283eb7 100644 --- a/lib/nmatrix/io/point_cloud.rb +++ b/lib/nmatrix/io/point_cloud.rb @@ -122,7 +122,7 @@ def initialize filename raise(IOError, "premature end of file") if i < points[0] end - attr_accessor *ENTRIES + attr_accessor(*ENTRIES) attr_reader :matrix protected