Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/mumukit/auth/array.rb
Instance Method Summary collapse
-
#pad_with(element, length) ⇒ Object
Expands the array to length, filling the blanks with the element given.
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 |