Sha256: e216567533c71712a03461a9dcb21351b801a6ddd2752834cc88d6a2b55706bc

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

module Symbiont
  module WebObjects
    
    class Radio < WebObject

      def initialize(web_object)
        @web_object = web_object
      end

      def self.usable_selectors
        super + [:value, :label]
      end

      def select
        web_object.set
      end

      def clear
        web_object.clear
      end

      def selected?
        web_object.set?
      end

    end # class: Radio
    
    ::Symbiont::WebObjects.class_for_type[:radio] = ::Symbiont::WebObjects::Radio
    
  end # module: WebObjects
end # module: Symbiont

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
symbiont-0.2.1 lib/symbiont/web_objects/radio.rb
symbiont-0.2.0 lib/symbiont/web_objects/radio.rb