First off Apologies for off topic post -- but I figure that more people here will be familiar with sinatra than the general forum and the particular code was adapted from Rails... I need to tweak the sinatra FileStreamer class which is in module Streaming, which is in module Sinatra in sinatra.rb because the data I am sending is derived from a database and I don''t know up front what size it is and each has to get blocks of data from the db. (And I *really* don''t want to extract it to a file and then send that ;) The problem I have is that I can''t figure out how to reference a class that is part of a module? I''ve tried various things but I can''t make it work. I then tried lifting the class out of sinatra.rb but of course it has hooks into module variables etc and anyway I would much rather do this properly. <code> include "sinatra" class Appsupport include Sinatra::Streaming << Unknown constant ? class DBStreamer < <what goes here? > . . . -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.