def comparison_value(value, position)
			return value if value.class != Range
			position == :first ? value.first : value.last
		end
def comparison_value(value, position)
			return value if value.class != Range
			position == :first ? value.first : value.last
		end
For a Range, will return value.first or value.last. A non-Range will return itself.