push
5 of 5 new or added lines in 1 file covered. (100.0%)
651 of 888 relevant lines covered (73.31%)
346.13 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
module FiniteMachine |
1✔ |
4 |
class Const |
1✔ |
5 |
def initialize(name) |
1✔ |
6 |
@name = name.to_s
|
2✔ |
7 |
freeze |
2✔ |
8 |
end
|
|
9 |
|
|
10 |
def to_s |
1✔ |
11 |
@name
|
× |
12 |
end
|
|
13 |
alias to_str to_s |
1✔ |
14 |
alias inspect to_s |
1✔ |
15 |
end # Const |
|
16 |
end # FiniteMachine |