6 ms·
Without ActiveSupport I'd probably type something like this: %w(top left width height).reduce({}) { |memo, pos| memo[position] = @element.style[position] and
by alinajaf 14y ago
Without ActiveSupport I'd probably type something like this:
%w(top left width height).reduce({}) { |memo, pos| memo[position] = @element.style[position] and memo }