Sha256: d0825ae12068ee18a5c3f2d6b700209bab589dc2fe86b9e46d7beb08cbdc0090

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

module Druid
  module Elements
    class RadioButton < Element

      #
      # Select the RadioButton
      #
      def select
        element.set
      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

2 entries across 2 versions & 1 rubygems

Version Path
druid-ts-1.2.4 lib/druid/elements/radio_button.rb
druid-ts-1.2.3 lib/druid/elements/radio_button.rb