lib/mohawk/accessors.rb
def spinner(name, locator)
      define_method(name) do
        adapter.spinner(locator).value
      end
      define_method("#{name}=") do |value|
        adapter.spinner(locator).value = value
      end
      define_method("increment_#{name}") do
        adapter.spinner(locator).increment
      end
      define_method("decrement_#{name}") do
        adapter.spinner(locator).decrement
      end
      define_method("#{name}_view") do
        adapter.spinner(locator).view
      end
    end
def spinner(name, locator)
      define_method(name) do
        adapter.spinner(locator).value
      end
      define_method("#{name}=") do |value|
        adapter.spinner(locator).value = value
      end
      define_method("increment_#{name}") do
        adapter.spinner(locator).increment
      end
      define_method("decrement_#{name}") do
        adapter.spinner(locator).decrement
      end
      define_method("#{name}_view") do
        adapter.spinner(locator).view
      end
    end
Generates methods for working with spinner controls

 @example
 spinner(:age, :id => "ageId")
   # will generate 'age', 'age=' methods to get the spinner value and
   # set the spinner value.

 @param  [String] the name used for the generated methods
 @param  [Hash] locator for how the spinner control is found