def b(name, identifier={:index => 0}, &block)
      standard_methods(name, identifier,'b_for', &block)
      define_method(name) do
        return platform.b_text_for identifier.clone unless block_given?
        self.send("#{name}_element").text
      end
    end
def b(name, identifier={:index => 0}, &block)
      standard_methods(name, identifier,'b_for', &block)
      define_method(name) do
        return platform.b_text_for identifier.clone unless block_given?
        self.send("#{name}_element").text
      end
    end
def b ( name , identifier = { :index => 0 } , & block ) standard_methods ( name , identifier , 'b_for' , block ) define_method ( name ) do return platform . b_text_for identifier . clone unless block_given? self . send ( "#{name}_element" ) . text end end
adds three methods - one to retrieve the text of a b element, another to
 retrieve a b element, and another to check for it's existence.

 @example
   b(:bold, :id => 'title')
   # will generate 'bold', 'bold_element', and 'bold?' methods

 @param [Symbol] the name used for the generated methods
 @param [Hash] identifier how we find a b.
 @param optional block to be invoked when element method is called
adds three methods - one to retrieve the text of a b element another to retrieve a b element and another to check for it s existence .