travis-ci
402 of 402 new or added lines in 52 files covered. (100.0%)
10456 of 10882 relevant lines covered (96.09%)
91710.11 hits per line
1 |
# encoding: UTF-8
|
|
2 |
|
|
3 |
# Copyright 2012 Twitter, Inc
|
|
4 |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
5 |
|
|
|
module TwitterCldr |
7✔ |
|
module Transforms |
7✔ |
|
module Transforms |
7✔ |
9 |
|
|
|
class BlankTransform < TransformRule |
7✔ |
|
TRANSFORM = 'blank'.freeze |
7✔ |
12 |
|
|
|
def self.instance |
7✔ |
|
@instance ||= new
|
126✔ |
15 |
end
|
|
16 |
|
|
|
private |
7✔ |
18 |
|
|
|
def initialize |
7✔ |
|
super(nil, nil) |
7✔ |
21 |
end
|
|
22 |
|
|
|
public |
7✔ |
24 |
|
|
|
def apply_to(cursor) |
7✔ |
|
puts 'BLANK' if $debug |
× |
27 |
end
|
|
28 |
|
|
|
def null? |
7✔ |
|
false
|
224✔ |
31 |
end
|
|
32 |
|
|
|
def blank? |
7✔ |
|
true
|
112✔ |
35 |
end
|
|
36 |
|
|
|
def transform |
7✔ |
|
TRANSFORM
|
112✔ |
39 |
end
|
|
40 |
|
|
|
def has_transform?(*args) |
7✔ |
|
false
|
42✔ |
43 |
end
|
|
44 |
|
|
|
def apply_to(cursor) |
7✔ |
46 |
# do nothing
|
|
47 |
end
|
|
48 |
end
|
|
49 |
|
|
50 |
end
|
|
51 |
end
|
|
52 |
end
|