Skip to content

gaustin/web-rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

#Web.rb: Web.py for Ruby

This is only a toy project at the moment. It's an exercise for me to learn more about Ruby.

#Example Program:

urls = { 
    '/', 'index',
    '/users', 'users',
}

class Index
    def get
        "<b>hello there, gentlemen!</b>"
    end
end

class Users
    def get
        "<b> you don't need this</b>"
    end
end

Web.start(urls)

Releases

No releases published

Packages

No packages published

Languages