lib/accio/content.rb
def search_snippets(group, text)
      matches = []
      group.snippets.each do |snippet|
        # Only include the snippet if the text is found in the title.
        if snippet.title.downcase.include?(text.downcase)
          matches << snippet
        end
      end
      matches
    end
def search_snippets(group, text)
      matches = []
      group.snippets.each do |snippet|
        # Only include the snippet if the text is found in the title.
        if snippet.title.downcase.include?(text.downcase)
          matches << snippet
        end
      end
      matches
    end
def search_snippets ( group , text ) matches = [ ] group . snippets . each do | snippet | # Only include the snippet if the text is found in the title. if snippet . title . downcase . include? ( text . downcase ) matches << snippet end end matches end
Internal: Search the snippets for a specific text match.

 group - The parent group that includes all the snippets.
 text  - The text for snippet titles to search for.

 Returns Array of snippet matches.
Internal : Search the snippets for a specific text match .