From 0bd324656bc9eaf210673f67aca3ec12c5da37b8 Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Sun, 24 Nov 2024 02:51:42 +0900 Subject: [PATCH] [Ruby]Add new `BlankSlate` snippet using `BasicObject` (#3425) - Use BasicObject for Ruby BlankSlate since `BasicObject` is available as of Ruby v1.9[^1]. - Change tabTrigger from `cla` to `clab` since we already have some snippets triggered by `cla` - Simplify snippet file name [^1]: https://ruby-doc.org/core-1.9.3/BasicObject.html --- ...-initialize-..-end-(class).sublime-snippet | 20 ------------------- .../Snippets/class-BlankSlate.sublime-snippet | 12 +++++++++++ 2 files changed, 12 insertions(+), 20 deletions(-) delete mode 100644 Ruby/Snippets/class-..-instance_methods-..-undef-..-initialize-..-end-(class).sublime-snippet create mode 100644 Ruby/Snippets/class-BlankSlate.sublime-snippet diff --git a/Ruby/Snippets/class-..-instance_methods-..-undef-..-initialize-..-end-(class).sublime-snippet b/Ruby/Snippets/class-..-instance_methods-..-undef-..-initialize-..-end-(class).sublime-snippet deleted file mode 100644 index d230d05408..0000000000 --- a/Ruby/Snippets/class-..-instance_methods-..-undef-..-initialize-..-end-(class).sublime-snippet +++ /dev/null @@ -1,20 +0,0 @@ - - - cla - source.ruby - class BlankSlate .. initialize .. end - diff --git a/Ruby/Snippets/class-BlankSlate.sublime-snippet b/Ruby/Snippets/class-BlankSlate.sublime-snippet new file mode 100644 index 0000000000..a03c89657d --- /dev/null +++ b/Ruby/Snippets/class-BlankSlate.sublime-snippet @@ -0,0 +1,12 @@ + + + clab + source.ruby + class BlankSlate .. initialize .. end +