Module: Yorinter::Printable
- Included in:
- PrintableDocument
- Defined in:
- lib/yorinter/printable.rb
Instance Method Summary collapse
Instance Method Details
#print(params = {}, options = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/yorinter/printable.rb', line 6 def print params = {}, = {} input_format = self.input_format || DEFAULT_INPUT_FORMAT output_format = params[:format] || self.output_format || DEFAULT_OUTPUT_FORMAT engine_class = Engine.search_engine input_format, output_format raise 'Not convertable' unless engine_class engine = engine_class.new(self, params, ).render end |