push
circleci
3494 of 6282 relevant lines covered (55.62%)
40.18 hits per line
1 |
module ActiveFedora::RDF |
× |
2 |
class ValueCaster |
× |
3 |
def initialize(value) |
× |
4 |
@value = value
|
× |
5 |
end
|
× |
6 |
|
|
7 |
def value |
× |
8 |
if @value.respond_to?(:language) # Cast RDF::Literals |
× |
9 |
@value.to_s
|
× |
10 |
else
|
× |
11 |
@value
|
× |
12 |
end
|
× |
13 |
end
|
× |
14 |
end
|
× |
15 |
end
|
× |