Method: Enumerable#rjust
- Defined in:
- lib/gooddata/extensions/enumerable.rb
#rjust(n, x) ⇒ Object
29 30 31 |
# File 'lib/gooddata/extensions/enumerable.rb', line 29 def rjust(n, x) Array.new([0, n - length].max, x) + self end |
29 30 31 |
# File 'lib/gooddata/extensions/enumerable.rb', line 29 def rjust(n, x) Array.new([0, n - length].max, x) + self end |