class Array

Public Instance Methods

pad_with(element, length) click to toggle source

Expands the array to length, filling the blanks with the element given

# File lib/mumukit/auth/array.rb, line 3
def pad_with(element, length)
  self.fill(element, self.length, length - self.length)
end