mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-12 16:34:18 +00:00
* Small change to textmate_import.rb to import (commented) "scope" directive
* Reimported the HTML and Ruby bundle with the previous fix * Applied Rob Christie's patches of issues 109 and 110 0001-Deleted-because-this-is-supported-via-dwim-with-rcod.patch 0002-Updated-snippets.patch 0003-Added-setup.el-file-that-must-be-loaded-prior-to-loa.patch 0004-ruby-mode-class-and-module-snippets-updated.patch 0005-changes-to-counting-snippets-and-some-declaration-sn.patch patching some things manually. Thanks a lot Rob!
This commit is contained in:
@@ -2,5 +2,6 @@
|
||||
# key: am
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: alias_method ..
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
alias_method :${1:new_name}, :${0:old_name}
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: rw
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: attr_accessor ..
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
attr_accessor :${0:attr_names}
|
||||
attr_accessor :${1:attr_names}
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: r
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: attr_reader ..
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
attr_reader :${0:attr_names}
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: w
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: attr_writer ..
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
attr_writer :${0:attr_names}
|
||||
@@ -2,6 +2,7 @@
|
||||
# key: defmm
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: def method_missing .. end
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
def method_missing(meth, *args, &blk)
|
||||
$0
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# key: defs
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: def self .. end
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
def self.${1:class_method_name}
|
||||
$0
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: defd
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: def_delegator ..
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
def_delegator :${1:@del_obj}, :${2:del_meth}, :${3:new_name}
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: defds
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: def_delegators ..
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
def_delegators :${1:@del_obj}, :${0:del_methods}
|
||||
@@ -2,5 +2,6 @@
|
||||
# key: Forw-
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: extend Forwardable
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
extend Forwardable
|
||||
@@ -2,6 +2,7 @@
|
||||
# key: Comp
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: include Comparable ..
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
include Comparable
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# key: Enum
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: include Enumerable ..
|
||||
## condition: "source.ruby"
|
||||
# --
|
||||
include Enumerable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user