travis-ci
2856 of 4194 relevant lines covered (68.1%)
5.89 hits per line
1 |
# frozen_string_literal: true
|
|
2 |
|
|
3 |
module NumbersAndWords |
3✔ |
4 |
module Strategies |
3✔ |
5 |
module FiguresConverter |
3✔ |
6 |
module Options |
3✔ |
7 |
module Base |
3✔ |
8 |
class RemoveZero |
3✔ |
9 |
attr_accessor :strategy, :options |
3✔ |
10 |
|
|
11 |
def initialize(proxy, *_args) |
3✔ |
12 |
@strategy = proxy.strategy
|
× |
13 |
@options = proxy.options
|
× |
14 |
end
|
|
15 |
|
|
16 |
def result |
3✔ |
17 |
active? |
× |
18 |
end
|
|
19 |
|
|
20 |
private |
3✔ |
21 |
|
|
22 |
def active? |
3✔ |
23 |
@options[:remove_zero] |
× |
24 |
end
|
|
25 |
end
|
|
26 |
end
|
|
27 |
end
|
|
28 |
end
|
|
29 |
end
|
|
30 |
end
|