Sha256: 183ec336afc86c228c4c2830911a45c6da15c8ee4de987b342481da609a541d5

Contents?: true

Size: 381 Bytes

Versions: 9

Compression:

Stored size: 381 Bytes

Contents

module Mohawk
  module Adapters
    module UIA
      class Radio < Control
        valid_patterns :selection_item

        def set
          selection_item.select
        end

        def set?
          selection_item.selected?
        end

        private
        def selection_item
          element.as :selection_item
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mohawk-1.0 lib/mohawk/adapters/uia/radio.rb
mohawk-0.4.4 lib/mohawk/adapters/uia/radio.rb
mohawk-0.4.3 lib/mohawk/adapters/uia/radio.rb
mohawk-0.4.2 lib/mohawk/adapters/uia/radio.rb
mohawk-0.4.1 lib/mohawk/adapters/uia/radio.rb
mohawk-0.4 lib/mohawk/adapters/uia/radio.rb
mohawk-0.3 lib/mohawk/adapters/uia/radio.rb
mohawk-0.2.1 lib/mohawk/adapters/uia/radio.rb
mohawk-0.2 lib/mohawk/adapters/uia/radio.rb