Sha256: 11a5053e8c9051011bf79824aefbffe3f9f6b600a99e1220a5c2095beb4c9d0a

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

module Pagetience
  module ElementPlatforms
    class Base
      attr_reader :browser

      class << self
        def find(klazz)
          valid_ancestor = ANCESTORS.find { |a| a.present? klazz }
          if valid_ancestor
            valid_ancestor.new klazz
          end
        end
      end

      def initialize(*args)
        @browser = nil
      end

      def platform_initialize; end

      def underlying_element_for(sym)
        nil
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pagetience-0.2.0 lib/pagetience/platforms/base.rb