Skip to content

Instantly share code, notes, and snippets.

Created May 5, 2015
What would you like to do?
#!/usr/bin/env ruby
require "nokogiri"
root = Nokogiri.parse("Empty.tmTheme"))
scopes = root
.css("plist dict array dict key")
.select {|key| key.text == "scope" }
.map {|key| key.next_element.text }
puts scopes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment