Sha256: 4800bb12b02652a41cacd1a24ede10421bdebd7de867d9390488e0d573aea014

Contents?: true

Size: 389 Bytes

Versions: 28

Compression:

Stored size: 389 Bytes

Contents

module Uia
  module ElementAttributes
    def element_attr(*attrs)
      attrs.each do |attr|
        define_method(attr) do
          @element.send(attr)
        end
      end
    end

    def refreshed_element_attr(*attrs)
      attrs.each do |attr|
        define_method(attr) do
          refresh
          @element.send(attr)
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
uia-1.0 lib/uia/library/element_attributes.rb
uia-0.8 lib/uia/library/element_attributes.rb
uia-0.7 lib/uia/library/element_attributes.rb
uia-0.7.alpha.1 lib/uia/library/element_attributes.rb
uia-0.6 lib/uia/library/element_attributes.rb
uia-0.5 lib/uia/library/element_attributes.rb
uia-0.4.4 lib/uia/library/element_attributes.rb
uia-0.4.3 lib/uia/library/element_attributes.rb
uia-0.4.2 lib/uia/library/element_attributes.rb
uia-0.4.1 lib/uia/library/element_attributes.rb
uia-0.4 lib/uia/library/element_attributes.rb
uia-0.3.3 lib/uia/library/element_attributes.rb
uia-0.3.2 lib/uia/library/element_attributes.rb
uia-0.3.1 lib/uia/library/element_attributes.rb
uia-0.3 lib/uia/library/element_attributes.rb
uia-0.2.1 lib/uia/library/element_attributes.rb
uia-0.2 lib/uia/library/element_attributes.rb
uia-0.1.3.1 lib/uia/library/element_attributes.rb
uia-0.1.3 lib/uia/library/element_attributes.rb
uia-0.1.2.3 lib/uia/library/element_attributes.rb