Support part of dirty methods.

Hi,

I have implemented a part of dirty methods. Could you consider to merge it?
why not use `define_method`?