Sha256: d4adb1b9611774f523584af3fcc6a3cdf623db7d23806b1df518c04c9547e538

Contents?: true

Size: 331 Bytes

Versions: 16

Compression:

Stored size: 331 Bytes

Contents

#coding: utf-8

module Wombat
  module Property
    module Locators
      class Headers < Base
        def locate(context, page = nil)
          super do
            context.headers.select do |k, v|
              k.to_s.match(@property.wombat_property_selector)
            end
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
wombat-3.0.0 lib/wombat/property/locators/headers.rb
wombat-2.10.0 lib/wombat/property/locators/headers.rb
wombat-2.9.0 lib/wombat/property/locators/headers.rb
wombat-2.8.0 lib/wombat/property/locators/headers.rb
wombat-2.7.0 lib/wombat/property/locators/headers.rb
wombat-2.6.0 lib/wombat/property/locators/headers.rb
wombat-2.5.1 lib/wombat/property/locators/headers.rb
wombat-2.5.0 lib/wombat/property/locators/headers.rb
wombat-2.4.0 lib/wombat/property/locators/headers.rb
wombat-2.3.0 lib/wombat/property/locators/headers.rb
wombat-2.2.1 lib/wombat/property/locators/headers.rb
wombat-2.2.0 lib/wombat/property/locators/headers.rb
wombat-2.1.3 lib/wombat/property/locators/headers.rb
wombat-2.1.2 lib/wombat/property/locators/headers.rb
wombat-2.1.1 lib/wombat/property/locators/headers.rb
wombat-2.1.0 lib/wombat/property/locators/headers.rb