Skip to content

Commit 126841d

Browse files
authored
Merge pull request #56 from pat/frozen-string-literals
Allow library to be used with frozen-string-literals enabled.
2 parents 9635cc2 + 298dc98 commit 126841d

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

lib/simplecov-html/version.rb

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
11
module SimpleCov
22
module Formatter
33
class HTMLFormatter
4-
VERSION = "0.10.1"
5-
6-
def VERSION.to_a
7-
split(".").map(&:to_i)
8-
end
9-
10-
def VERSION.major
11-
to_a[0]
12-
end
13-
14-
def VERSION.minor
15-
to_a[1]
16-
end
17-
18-
def VERSION.patch
19-
to_a[2]
20-
end
21-
22-
def VERSION.pre
23-
to_a[3]
24-
end
4+
VERSION = "0.10.1".freeze
255
end
266
end
277
end

0 commit comments

Comments
 (0)