Parse error on named argument in ruby 2.0
joenas opened this issue · 2 comments
joenas commented
$ cat test.rb
class Test
def initialize(variable, named_variable: 1)
end
end
$ flay test.rb
test.rb:2 :: parse error on value ":" (tCOLON)
skipping test.rb
Total score (lower is better) = 0
zenspider commented
ruby_parser doesn't support 2.0 syntax at this time.
zenspider commented
This should be fixed by the latest ruby_parser release.