def spinner(name, locator)
      define_method(name) do
        platform.get_spinner_value(locator)
      end
      define_method("select_#{name}") do |value|
        platform.select_spinner_value(locator, value)
      end
      define_method("#{name}_view") do
        Gametel::Views::Spinner.new(platform, locator)
      end
    end
def spinner(name, locator)
      define_method(name) do
        platform.get_spinner_value(locator)
      end
      define_method("select_#{name}") do |value|
        platform.select_spinner_value(locator, value)
      end
      define_method("#{name}_view") do
        Gametel::Views::Spinner.new(platform, locator)
      end
    end
Generates three method to interact with a spinner
 @example
   spinner(:spinner_item, :id => 'id_name_of_your_control')
   # will generate 'spinner_item' method to return the spinner
   # value, 'select_spinner_item(value) to set the spinner value
   # and 'spinner_view' to return the view

 @param  [Symbol]  the name used for the generated methods
 @param  [Hash]  locator indicating an id for how the spinner is found.
 The only valid keys are:
   * :id
   * :index