henrik/vim-ruby-runner — Issue #4: Outputs true instead of value for some results.
Author: zolrath
Created: 2012-01-31 12:16:38+00:00
State: open

If I tell Ruby Runner to run this bit of code:

class Array
def sum
inject {|sum, x| sum + x }
end
end

print [[1,2,4],[2,3]].map(&:sum)

it returns:

truetrue

instead of [7, 5] like calling the file does in the terminal.