push
8 of 8 new or added lines in 1 file covered. (100.0%)
648 of 885 relevant lines covered (73.22%)
242.78 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 |