Add ruby stuff
[emacs.git] / .emacs.d / elisp / yasnippet / snippets / python-mode / propsg
1 # contributor: Julio Carlos Menendez <godinblack@gmail.com>
2 # name: _get_foo ... _set_foo ... foo=property(...)
3 # key: propsg
4 # --
5 def _set_${1:foo}(self, value):
6 self._$1 = value
7
8 def _get_$1(self):
9 return self._$1
10
11 $1 = property(_get_$1, _set_$1)
12
13 $0