Module: VirtualProxy

Defined in:
lib/virtual_proxy.rb,
lib/virtual_proxy/proxy.rb,
lib/virtual_proxy/version.rb

Overview

Quickly build virtual proxies.

Defined Under Namespace

Classes: Proxy

Constant Summary collapse

VERSION =
'0.2.1'.freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.to(&block) ⇒ Object



6
7
8
# File 'lib/virtual_proxy.rb', line 6

def self.to(&block)
  Proxy.new(&block)
end

Instance Method Details

#build_lazy(*args, &block) ⇒ Object



10
11
12
# File 'lib/virtual_proxy.rb', line 10

def build_lazy(*args, &block)
  Proxy.new { new(*args, &block) }
end