Added specs on main#define_method.
Added main#define_method.
Merge pull request #2921 from razielgn/main-define_method

Added main#define_method.