lib/mohawk/accessors.rb
def label(name, locator)
      define_method("#{name}") do
        adapter.label(locator).value
      end
      define_method("#{name}_view") do
        adapter.label(locator).view
      end
    end
def label(name, locator)
      define_method("#{name}") do
        adapter.label(locator).value
      end
      define_method("#{name}_view") do
        adapter.label(locator).view
      end
    end
def label ( name , locator ) define_method ( "#{name}" ) do adapter . label ( locator ) . value end define_method ( "#{name}_view" ) do adapter . label ( locator ) . view end end
Generates methods to get the value of a label control

 @example
   label(:login_info, :id => 'loginInfoLabel')
   # will generate a 'login_info' method

 @param  [String]  the name used for the generated methods
 @param  [Hash]  locator for how the label is found
Generates methods to get the value of a label control