I created a gem with jeweler and I want a command hat to call a specific function in my gem.
In Python I can put this
entry_points="""
[console_scripts]
hat = hat:hat
"""
in setup.py and it works, but how is it done in ruby?