We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db45077 commit 3aafd44Copy full SHA for 3aafd44
app/helpers/application_helper.rb
@@ -1,17 +1,17 @@
1
-# frozen_string_literal: true
2
-
3
-module ApplicationHelper
4
- require 'json/ext'
5
6
- def format_string(string, *args)
7
- string.gsub(/\{(\d+)\}/) { |s| args[s.to_i] }
8
- end
9
10
- def to_json(hash)
11
- hash.to_json
12
13
14
- def example_available?(example)
15
- !(example['SkipForLanguages']) or !example['SkipForLanguages'].include? 'ruby'
16
17
-end
+# frozen_string_literal: true
+
+module ApplicationHelper
+ require 'json/ext'
+ def format_string(string, *args)
+ string.gsub(/\{(\d+)\}/) { |s| args[s.to_i] }
+ end
+ def to_json(hash)
+ hash.to_json
+ def example_available?(example)
+ !example['SkipForLanguages'] or !example['SkipForLanguages'].include? 'ruby'
+end
0 commit comments