Sha256: 642e64f416d039b42d64471db434d0c918e7cfc060468708bb50445b85bc85b7

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

require "gogo_driver/version"
require "gogo_driver/entity"

class GogoDriver
  attr_accessor :entity

  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.5 lib/gogo_driver.rb