travis-ci
638 of 857 relevant lines covered (74.45%)
1172.52 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
module FiniteMachine |
6✔ |
4 |
class Const |
6✔ |
5 |
def initialize(name) |
6✔ |
6 |
@name = name.to_s
|
12✔ |
7 |
freeze |
12✔ |
8 |
end
|
|
9 |
|
|
10 |
def to_s |
6✔ |
11 |
@name
|
× |
12 |
end
|
|
13 |
alias to_str to_s |
6✔ |
14 |
alias inspect to_s |
6✔ |
15 |
end # Const |
|
16 |
end # FiniteMachine |