Skip to content

Commit

Permalink
🎨 Fix Lint/AmbiguousOperator issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WaKeMaTTa committed Apr 3, 2019
1 parent 17bc088 commit 6546c0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/nmatrix/io/point_cloud.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6546c0a

Please sign in to comment.