-grant
def value
if @fact_value.size == 1
@fact_value[0]
else
@fact_value
end
end
along with this comment:
#
# Facts are collections or recordsets created by the user
#
In my case I want to pass in a Range object, but since Range doesn't
have a size method it chokes here. I can get round this by adding a
size method to a custom range class, but that seems a bit grody, and
I"m not sure what the size check buys you. What's it for?