Sha256: afd8b44a7f520829d1fbea5bc9db60debb4c6ff66d2a09114a328a88a0a78ee1

Contents?: true

Size: 578 Bytes

Versions: 4

Compression:

Stored size: 578 Bytes

Contents

module Uia
  module Patterns
    module Table
      module Row
        def items
          select(pattern: :table_item).each { |e| e.as :table_item }
        end
      end

      def row_count
        table_info.row_count
      end

      def column_count
        table_info.column_count
      end

      def headers
        table_info.headers
      end

      def rows
        select(control_type: :data_item).each { |e| e.extend Row }
      end

      private
      def table_info
        Library.table_info(@element)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uia-0.0.7.3 lib/uia/patterns/table.rb
uia-0.0.7.2 lib/uia/patterns/table.rb
uia-0.0.7.1 lib/uia/patterns/table.rb
uia-0.0.7 lib/uia/patterns/table.rb