travis-ci
401 of 401 new or added lines in 52 files covered. (100.0%)
62952 of 65298 relevant lines covered (96.41%)
271827.23 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✔ |
|
def self.instance |
7✔ |
|
@instance ||= new
|
126✔ |
13 |
end
|
|
14 |
|
|
|
private |
7✔ |
16 |
|
|
|
def initialize |
7✔ |
|
super(nil, nil) |
7✔ |
19 |
end
|
|
20 |
|
|
|
public |
7✔ |
22 |
|
|
|
def apply_to(cursor) |
7✔ |
|
puts 'BLANK' if $debug |
× |
25 |
end
|
|
26 |
|
|
|
def null? |
7✔ |
|
false
|
224✔ |
29 |
end
|
|
30 |
|
|
|
def blank? |
7✔ |
|
true
|
112✔ |
33 |
end
|
|
34 |
|
|
|
def transform |
7✔ |
|
'blank'
|
112✔ |
37 |
end
|
|
38 |
|
|
|
def has_transform?(*args) |
7✔ |
|
false
|
42✔ |
41 |
end
|
|
42 |
|
|
|
def apply_to(cursor) |
7✔ |
44 |
# do nothing
|
|
45 |
end
|
|
46 |
end
|
|
47 |
|
|
48 |
end
|
|
49 |
end
|
|
50 |
end
|