Sha256: aecde8e8bc69dc9598d691c50fb8fcb5c8e09ee438ce01159229857d95e72fc9
Contents?: true
Size: 416 Bytes
Versions: 2
Compression:
Stored size: 416 Bytes
Contents
module Rack class API module Formatter class Base attr_accessor :object attr_accessor :params attr_accessor :env class AbstractMethodError < StandardError; end def initialize(object, env, params) @object, @env, @params = object, env, params end def to_format raise AbstractMethodError end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-api-1.1.0 | lib/rack/api/formatter/base.rb |
rack-api-1.0.2 | lib/rack/api/formatter/base.rb |