Sha256: 4216331c8b19267c6964aa332192dfd905523ebbb4c2f5c3930c2e6be8de6250

Contents?: true

Size: 400 Bytes

Versions: 8

Compression:

Stored size: 400 Bytes

Contents

module FakeWeb
  class SocketDelegator #:nodoc:

    def initialize(delegate=nil)
      @delegate = nil
    end

    def method_missing(method, *args, &block)
      if @delegate
        @delegate.send(method, *args, &block)
      else
        self.send("my_#{method}", *args, &block)
      end
    end

    def my_closed?
      @closed ||= true
    end

    def my_readuntil(*args)
    end

  end
end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
MarkMenard-fakeweb-1.1.2.6 lib/fake_web/socket_delegator.rb
aeden-contacts-0.2.15 vendor/fakeweb/lib/fake_web/socket_delegator.rb
aeden-contacts-0.2.16 vendor/fakeweb/lib/fake_web/socket_delegator.rb
aeden-contacts-0.2.18 vendor/fakeweb/lib/fake_web/socket_delegator.rb
aeden-contacts-0.2.19 vendor/fakeweb/lib/fake_web/socket_delegator.rb
aeden-contacts-0.2.20 vendor/fakeweb/lib/fake_web/socket_delegator.rb
chrisk-fakeweb-1.1.2.7 lib/fake_web/socket_delegator.rb
mislav-fakeweb-1.1.2.6 lib/fake_web/socket_delegator.rb