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 Ordinal |
3✔ |
9 |
def initialize(proxy, *_args) |
3✔ |
10 |
@strategy = proxy.strategy
|
× |
11 |
@options = proxy.options
|
× |
12 |
end
|
|
13 |
|
|
14 |
def result |
3✔ |
15 |
return :ordinal if active? |
× |
16 |
end
|
|
17 |
|
|
18 |
private |
3✔ |
19 |
|
|
20 |
def active? |
3✔ |
21 |
@options[:ordinal] |
× |
22 |
end
|
|
23 |
end
|
|
24 |
end
|
|
25 |
end
|
|
26 |
end
|
|
27 |
end
|
|
28 |
end
|