Basic profiling example using ruby-prof.

This script (and future other scripts) is used to hunt down performance issues
in ruby-lint.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Various micro memory improvements.

So far these improvements reduce the memory usage by a whopping 2MB when
loading all the Rails definitions.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Cleaned up profiling & micro optimizations.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Build YARD docs in ./yardoc.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Removed RubyMethod#method_type.

This attribute was completely useless ever since #type started to contain the
same values.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Swapped arguments for add_child_*.

The argument list used to be [name, type] but has been inverted to match the
other code related to adding definitions.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Don't create needless Arrays for RubyMethods.

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