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