Sha256: 33f668fb1d5794c8993e2ebe415170a0f4cfaba444f0f1db1dedb8f5a5badf6d

Contents?: true

Size: 230 Bytes

Versions: 30

Compression:

Stored size: 230 Bytes

Contents

class Rack::App::Serializer

  attr_reader :logic

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

  def set_serialization_logic(proc)
    @logic = proc
  end

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

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rack-app-5.0.0 lib/rack/app/serializer.rb
rack-app-5.0.0.rc2 lib/rack/app/serializer.rb
rack-app-5.0.0.rc1 lib/rack/app/serializer.rb
rack-app-4.0.1 lib/rack/app/serializer.rb
rack-app-3.6.0 lib/rack/app/serializer.rb
rack-app-3.5.2 lib/rack/app/serializer.rb
rack-app-3.5.1 lib/rack/app/serializer.rb
rack-app-3.5.0 lib/rack/app/serializer.rb
rack-app-3.4.0 lib/rack/app/serializer.rb
rack-app-3.3.0 lib/rack/app/serializer.rb
rack-app-3.2.1 lib/rack/app/serializer.rb
rack-app-3.2.0 lib/rack/app/serializer.rb
rack-app-3.1.0 lib/rack/app/serializer.rb
rack-app-3.0.0 lib/rack/app/serializer.rb
rack-app-3.0.0.delta lib/rack/app/serializer.rb
rack-app-3.0.0.gamma lib/rack/app/serializer.rb
rack-app-3.0.0.beta lib/rack/app/serializer.rb
rack-app-3.0.0.alpha lib/rack/app/serializer.rb
rack-app-2.3.1 lib/rack/app/serializer.rb
rack-app-2.3.0 lib/rack/app/serializer.rb