Sha256: aa8bb1f0d69662ccabd6533076f03986f0eeea700a818f154d2c6cafcb9f7fb0
Contents?: true
Size: 822 Bytes
Versions: 4
Compression:
Stored size: 822 Bytes
Contents
module Redcar module Textmate class Snippet attr_reader :bundle_name, :key_equivalent def initialize(path, bundle_name) @path = path @plist = Plist.xml_to_plist(File.read(path)) @bundle_name = bundle_name if key = @plist["keyEquivalent"] @key_equivalent = Textmate.translate_key_equivalent(key) end end def name @plist["name"] end def scope @plist["scope"] end def uuid @plist["uuid"] end def tab_trigger @plist["tabTrigger"] end def content @plist["content"] end def to_menu_string r = name.clone r << " (#{tab_trigger}↦)" if tab_trigger r end end end end
Version data entries
4 entries across 4 versions & 1 rubygems