Sha256: 3c060cd780dad969bf2cdffc663b9f055af15b2526f0d8ba6212b167d570bda0
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
require "gogo_driver/version" require "gogo_driver/entity" class GogoDriver def initialize(url='https://www.google.com') @entity = Entity.new @entity.go(url) @last_url = url end def method_missing(method, *args, &block) @entity.respond_to?(method) ? @entity.send(method, *args, &block) : super rescue Errno::ECONNREFUSED initialize(@last_url) @entity.send(method, *args, &block) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gogo_driver-0.0.4 | lib/gogo_driver.rb |