Adding kamatsu's proposed block literal syntax

This commit is contained in:
Jeremy Ashkenas
2010-01-03 10:19:39 -05:00
parent 7eff8786bc
commit 21a0cc83ae
2 changed files with 15 additions and 2 deletions

View File

@@ -220,6 +220,10 @@ module CoffeeScript
@arguments.any? {|a| a.is_a?(ArgSplatNode) }
end
def <<(argument)
@arguments << argument
end
def compile(o={})
o = super(o)
return write(compile_splat(o)) if splat?