Skip to content

Commit 3aafd44

Browse files
fix linter error
1 parent db45077 commit 3aafd44

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

app/helpers/application_helper.rb

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
end
13-
14-
def example_available?(example)
15-
!(example['SkipForLanguages']) or !example['SkipForLanguages'].include? 'ruby'
16-
end
17-
end
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+
end
13+
14+
def example_available?(example)
15+
!example['SkipForLanguages'] or !example['SkipForLanguages'].include? 'ruby'
16+
end
17+
end

0 commit comments

Comments
 (0)