Refactor of the definitions classes.

Due to the new arguments AST various parts of the two definiton classes
(RubyObject and RubyMethod) had to be re-written.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>