Sha256: 2a90cc2b8469bbea5597deb98cfac010be02d87c9eb6111cfb6394efade62a3d

Contents?: true

Size: 205 Bytes

Versions: 11

Compression:

Stored size: 205 Bytes

Contents

class Rack::App::Serializer

  def initialize
    @proc = lambda { |o| o.to_s }
  end

  def set_serialization_logic(proc)
    @proc = proc
  end

  def serialize(object)
    @proc.call(object)
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rack-app-0.23.0 lib/rack/app/serializer.rb
rack-app-0.22.0 lib/rack/app/serializer.rb
rack-app-0.21.0 lib/rack/app/serializer.rb
rack-app-0.20.0 lib/rack/app/serializer.rb
rack-app-0.19.0 lib/rack/app/serializer.rb
rack-app-0.18.0 lib/rack/app/serializer.rb
rack-app-0.17.0 lib/rack/app/serializer.rb
rack-app-0.16.0 lib/rack/app/serializer.rb
rack-app-0.15.0 lib/rack/app/serializer.rb
rack-app-0.14.0 lib/rack/app/serializer.rb
rack-app-0.13.0 lib/rack/app/serializer.rb