lib/rack/api/formatter/base.rb in rack-api-1.0.1 vs lib/rack/api/formatter/base.rb in rack-api-1.0.2

- old
+ new

@@ -2,14 +2,15 @@ class API module Formatter class Base attr_accessor :object attr_accessor :params + attr_accessor :env class AbstractMethodError < StandardError; end - def initialize(object, params) - @object, @params = object, params + def initialize(object, env, params) + @object, @env, @params = object, env, params end def to_format raise AbstractMethodError end