mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
Adding kamatsu's proposed block literal syntax
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user