You do not need self for helpers:
module MyApp module MyHelper def test() params.inspect end end end
Please note that the helper is available only in the context of the request (that is, during the processing of the request):
get '/' do test_result = test
source share