Sha256: a3bf1dcf12a060f243466f01319079dc10b045044384ccbe5daaeae96234f93b
Contents?: true
Size: 510 Bytes
Versions: 3
Compression:
Stored size: 510 Bytes
Contents
require "active_support/concern" require "capybara_objects/registry_instance" module CapybaraObjects module LocationMethods extend ActiveSupport::Concern included do |base| class_attribute :default_locator attr_accessor :locator, :scope end def initialize(attrs = {}) self.locator = default_locator self.scope = [] super locator.freeze end class_methods do def locator(*args) self.default_locator = args end end end end
Version data entries
3 entries across 3 versions & 1 rubygems