Sha256: a7f2018972ba0a9c6133417e952e978d09104f7b40c745e4b3db93effcb5dc30
Contents?: true
Size: 640 Bytes
Versions: 6
Compression:
Stored size: 640 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'ramaze' # you can access it now with http://localhost:7000/ # This should output # Hello, World! # in your browser class MainController < Ramaze::Controller def index "Hello, World!" end end def check os = [] ObjectSpace.each_object{|o| os << o } p os.inject(Hash.new(0)){|s,v| s[v.class] += 1; s}.sort_by{|k,v| v} end Thread.new do loop do check sleep 5 end end Ramaze::Inform.loggers.clear Ramaze.start :adapter => :mongrel, :sourcereload => false
Version data entries
6 entries across 6 versions & 1 rubygems