Remove some dead code
Rename function -> method

Ruby doesn't have a concept of functions, only methods.
Remove some unnecessary rules in the parser