mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 18:34:17 +00:00
Keep snippet vars definitions in a single format across all snippets and documentation.
The format is: # var-name: value Previously snippets used a mixture of the following formatting: #var-name: value #var-name : value # var-name: value # var-name : value
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#name : include Comparable; def <=> ... end
|
||||
# name: include Comparable; def <=> ... end
|
||||
# key: Comp
|
||||
# --
|
||||
include Comparable
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : alias_method new, old
|
||||
# name: alias_method new, old
|
||||
# key: am
|
||||
# --
|
||||
alias_method :${new_name}, :${old_name}
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : class << self ... end
|
||||
# name: class << self ... end
|
||||
# key: cla
|
||||
# --
|
||||
class << ${self}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#name : class ... end
|
||||
#contributor : hitesh <hitesh.jasani@gmail.com>
|
||||
# name: class ... end
|
||||
# contributor: hitesh <hitesh.jasani@gmail.com>
|
||||
# key: cls
|
||||
# --
|
||||
class ${1:`(let ((fn (capitalize (file-name-nondirectory
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : def method_missing ... end
|
||||
# name: def method_missing ... end
|
||||
# key: mm
|
||||
# --
|
||||
def method_missing(method, *args)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : attr_reader ...
|
||||
# name: attr_reader ...
|
||||
# key: r
|
||||
# --
|
||||
attr_reader :
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : attr_accessor ...
|
||||
# name: attr_accessor ...
|
||||
# key: rw
|
||||
# --
|
||||
attr_accessor :
|
||||
@@ -1,4 +1,4 @@
|
||||
#name : attr_writer ...
|
||||
# name: attr_writer ...
|
||||
# key: w
|
||||
# --
|
||||
attr_writer :
|
||||
Reference in New Issue
Block a user