Solution and Tests to the Columbia University Image #2 problem.
lib/image.rb
- contains solutionspec/image_spec.rb
- includes three different examples
- the method
blank_matrix
- gets as a parameter matrix and converts it to the matrix with the same dimention but with only zero values in it. - the method
blur
- iterates through the matrix specified in a class constructor and if met ones it will replaces values in the matrix calledtransformed_matrix
which is used as a result of the program. This method returnstransformed_matrix
as a result. - the method
output_image
- converts matrix to string and prints it in a console
- Run
bundle install
- Open terminal window
- From the project directory run
rspec