Skip to content

Commit f36237f

Browse files
committed
enable frozen string literals
1 parent 5a253ef commit f36237f

File tree

95 files changed

+198
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+198
-110
lines changed

example/rails/app/controllers/example001_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2010-05-20

example/rails/app/controllers/example002_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2010-05-20

example/rails/app/controllers/example003_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2010-05-20

example/rails/app/controllers/example004_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2010-05-20

example/rails/app/controllers/example005_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2010-05-20

example/rails/app/controllers/example006_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2010-05-20
@@ -219,8 +220,8 @@ def index
219220
# add a page
220221
pdf.add_page()
221222

222-
textcolors = '<h1>HTML Text Colors</h1>'
223-
bgcolors = '<hr /><h1>HTML Background Colors</h1>'
223+
textcolors = +'<h1>HTML Text Colors</h1>'
224+
bgcolors = +'<hr /><h1>HTML Background Colors</h1>'
224225

225226
@@webcolor.each{|k,v|
226227
textcolors << '<span color="#' + v + '">' + v + '</span> '

example/rails/app/controllers/example007_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2010-05-20

example/rails/app/controllers/example008_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2010-05-20
@@ -57,10 +58,10 @@ def index
5758
pdf.add_page()
5859

5960
# get esternal file content
60-
utf8text=''
61+
utf8text = +''
6162
file = PDF_UTF8TEST_TXT
6263
open(file,'rb') do |f|
63-
utf8text<<f.read()
64+
utf8text << f.read()
6465
end
6566

6667
# set color for text

example/rails/app/controllers/example009_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2023-03-23

example/rails/app/controllers/example011_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# coding: UTF-8
2+
# frozen_string_literal: true
23
#============================================================+
34
# Begin : 2008-03-04
45
# Last Update : 2010-05-20

0 commit comments

Comments
 (0)