Removed Class Eval and used define_method instead for the SafeBuffer
Added a blank space and removed to_sym
Merge pull request #10600 from aditya-kapoor/code_refactor

Removed Class Eval and used define_method instead for the SafeBuffer