search for: file_x

Displaying 3 results from an estimated 3 matches for "file_x".

Did you mean: file_t
2006 Apr 20
0
Using render_to_string in other custom classes
...the publishing requires templates I have them in there own views. The problem is when I want to publish via email I don''t want to ask the controller to render the views. This is what I tried to do: #/lib/myclass.rb class foo def build @rts = ActionController::Base.new file_x file_y end def file_x contents = @rts.render_to_string( path_to_my_template, self ) # and then I''d make the file etc end def file_y contents = @rts.render_to_string( path_to_my_template, self ) # and then I''d make the file etc end end the...
2019 Mar 23
2
[GSoC] Questions about project Text-Extraction Libraries
...nk that applying a design that foresees the incorporation of new file formats is the most suitable way to solve the problem. In the attached sketch we can see: * Bug_Box: It is responsible for encapsulating and handling errors. * File_extrator: It presents an interface for the different formats. * File_X: Encapsulates a particular library for the X file format. * File_Hadle: It is responsible for directing the extraction. More specifically, it determines the file format and which extractor to use. * Ominex: It represents the rest of the project. The idea of organizing the code in this way focuses...
2019 Mar 21
2
[GSoC] Questions about project Text-Extraction Libraries
Hello! I have a few question related to the project Text-Extraction Libraries. Firstly, I think that trying to isolate library bugs in subprocesses could get to work, but I am not sure about how to handle deadlocks or infinite loops. I feel that using a timer is the only way to deal with it but I would like to know what you think about it. Secondly, I have been reading the source code of