Class: Elster::ElsterHandler
- Inherits:
-
Object
- Object
- Elster::ElsterHandler
- Defined in:
- lib/elster/elster_handler.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call(template) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/elster/elster_handler.rb', line 10 def self.call(template) %{ if defined?(json) #{template.source} else output = StringIO.new json = Elster::Streamer.new(output) #{template.source} json.close output.string end } end |
Instance Method Details
#supports_streaming? ⇒ Boolean
6 7 8 |
# File 'lib/elster/elster_handler.rb', line 6 def supports_streaming? true end |