Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (19 sloc) 389 Bytes
title layout pygments
Testing 1.2.3
default
true

{% highlight ruby %}
class RequestParser < Wukong::Streamer::StructStreamer
#

  1. ask each request to parse itself;
  2. serialize the results.
    #
    def process request, args, &block
    request.parse(
    args) do |obj|
    next if obj.is_a? BadRecord
    yield obj.to_flat(false)
    end
    end
    end
    {% endhighlight %}
Something went wrong with that request. Please try again.