Sha256: b375a166893457cbb659e8853fe2d0e2f635c5a7f2fe508b5c137ea92b30ec0d

Contents?: true

Size: 356 Bytes

Versions: 1

Compression:

Stored size: 356 Bytes

Contents

  module ActiveResourceResponse
    module Response
      def self.included(base)
        base.class_eval  do
          def to_hash
            @headers
          end
          # to avoid method name conflict with ActiveresourceResponse:HttpResponse:headers
          def [](key)
            @headers[key]
          end
        end
      end
    end
  end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activeresource-response-0.2.0 lib/activeresource-response/active_resource_response.rb