Skip to content

Fixes for sample app

Compare
Choose a tag to compare
@st0012 st0012 released this 11 Mar 16:23
· 732 commits to master since this release

The major fix is to make splat parameter returns an empty array instead of nil when no argument is passed.

def foo(*x)
  x
end

# before fix
foo #=> nil

# after fix
foo #=> []