mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 18:04:18 +00:00
Last commit before tagging and releasing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: clafn
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: class_from_name()
|
||||
# --
|
||||
split("::").inject(Object) { |par, const| par.const_get(const) }
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: deec
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: deep_copy(..)
|
||||
# --
|
||||
Marshal.load(Marshal.dump(${0:obj_to_copy}))
|
||||
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: sinc
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: singleton_class()
|
||||
# --
|
||||
class << self; self end
|
||||
Reference in New Issue
Block a user