Using Ruby 1.9.2 with RubyMine and Matrix
问题 I am using ruby 1.9.2-p290 and RubyMine. And i try to use Matrix (require 'matrix'). So, i have few questions. How can i change any value of matrix? For example: require 'matrix' matrix = Matrix[[1, -2, 3], [3, 4, -5], [2, 4, 1]] matrix[0, 0] = 5 p matrix Gives next: in `<top (required)>': private method `[]=' called for Matrix[[1, -2, 3], [3, 4, -5], [2, 4, 1]]:Matrix (NoMethodError) from -e:1:in `load' from -e:1:in `<main>' Is it possible to show me methods for matrix by code completion in