Skip to content

Instantly share code, notes, and snippets.

@esterlus
esterlus / main.rb
Created September 22, 2015 13:37
ruby coding challenge
class Canvas
attr_reader :width
attr_reader :height
def initialize(input)
vals = input.split
@width = vals[0].to_i
@height = vals[1].to_i
@all = Array.new(@width * @height, 0)
end

Keybase proof

I hereby claim:

  • I am esterlus on github.
  • I am esterlus (https://keybase.io/esterlus) on keybase.
  • I have a public key ASC46jl0BjwY0ia6FB1QOWKjlmOuiqV0X9zWq0ZmO6KtCAo

To claim this, I am signing this object: