aboutsummaryrefslogtreecommitdiff
path: root/snippets/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/ruby')
-rw-r--r--snippets/ruby/class.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/snippets/ruby/class.rb b/snippets/ruby/class.rb
new file mode 100644
index 0000000..5b16823
--- /dev/null
+++ b/snippets/ruby/class.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class $1
+ def initialize
+ $2
+ end
+
+ $3
+end