lib/chunky_png/canvas.rb
# Throws an exception if the vector_length does not match this canvas'
# width.
Throws an exception if the vector_length does not match this canvas'
width.
Throws an exception if the vector_length does not match this canvas ' width .
def assert_width!(vector_length)
      if width != vector_length
        raise ChunkyPNG::ExpectationFailed,
          "The length of the vector (#{vector_length}) does not match the canvas width (#{width})!"
      end
      true
    end
def assert_width! ( vector_length ) if width != vector_length raise ChunkyPNG :: ExpectationFailed , "The length of the vector (#{vector_length}) does not match the canvas width (#{width})!" end true end
Throws an exception if the vector_length does not match this canvas'
width.
Throws an exception if the vector_length does not match this canvas ' width .
vector_length
<not_specific>