When calling set_element
on an instance of the Matrix class I get the following error
NoMethodError: private method ‘set_element’ called for Matrix[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]:Matrix
But set_element
is listed under public instance methods in the documentation
Also, set_element is an alias for []=(i, j, v) and using this method I get the following error
ArgumentError: wrong number of arguments (3 for 2)
Doesn't make any sense, any help is appreciated.
Ruby 1.9.2 p180