lib/sdb/active_sdb.rb
# Returns an array of query attributes.
# Query_expression must be a well formated SDB query string:
# query_attributes("['title' starts-with 'O\\'Reily'] intersection ['year' = '2007']") #=> ["title", "year"]
Returns an array of query attributes.
Returns an array of query attributes .
def query_attributes(query_expression) 
          attrs = []
          array = query_expression.scan(/['"](.*?[^\\])['"]/).flatten
          until array.empty? do
            attrs << array.shift 
            array.shift 
          end
          attrs
        end
def query_attributes ( query_expression ) attrs = [ ] array = query_expression . scan ( / ['"](.*?[^ \\ ])['"] / ) . flatten until array . empty? do attrs << array . shift array . shift end attrs end
Returns an array of query attributes.
Returns an array of query attributes .
# :nodoc: # skip it's value #
query_expression
<not_specific>