Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/mumukit/auth/array.rb

Instance Method Summary collapse

Instance Method Details

#pad_with(element, length) ⇒ Object

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



3
4
5
# File 'lib/mumukit/auth/array.rb', line 3

def pad_with(element, length)
  self.fill(element, self.length, length - self.length)
end