Sha256: 08359c33f9d5a70aa8a418230e25453c8584e72a470c6dbe056015bf155949e2

Contents?: true

Size: 504 Bytes

Versions: 8

Compression:

Stored size: 504 Bytes

Contents

module Druid
  module Elements
    class RadioButton < Element

      def self.finders
        super + [:value]
      end
      #
      # Select the RadioButton
      #
      def select
        element.set
      end

      #
      # Clear the RadioButton
      #
      def clear
        element.clear
      end

      #
      # Return if it is selected
      #
      def selected?
        element.set?
      end
    end

    Druid::Elements.type_to_class[:radio] = Druid::Elements::RadioButton
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
druid-ts-1.1.7 lib/druid/elements/radio_button.rb
druid-ts-1.1.6 lib/druid/elements/radio_button.rb
druid-ts-1.1.5 lib/druid/elements/radio_button.rb
druid-ts-1.1.4 lib/druid/elements/radio_button.rb
druid-ts-1.1.3 lib/druid/elements/radio_button.rb
druid-ts-1.1.2 lib/druid/elements/radio_button.rb
druid-ts-1.1.1 lib/druid/elements/radio_button.rb
druid-ts-1.1.0 lib/druid/elements/radio_button.rb