Module: JsonApi::ArrayPadder

Defined in:
lib/json_api_ruby/includes.rb

Overview

Meant to be extended within an Array instance

Instance Method Summary collapse

Instance Method Details

#pad(length) ⇒ Object



72
73
74
# File 'lib/json_api_ruby/includes.rb', line 72

def pad(length)
  self + self.class.new(length - self.length) { nil }
end