lib/excon/hypermedia/resource_object/links.rb in excon-hypermedia-0.4.2 vs lib/excon/hypermedia/resource_object/links.rb in excon-hypermedia-0.4.3
- old
+ new
@@ -8,10 +8,12 @@
# Represents a collection of links part of a resource.
#
class Links
include Collection
- private def property(value)
+ private
+
+ def property(value)
value.respond_to?(:to_ary) ? value.map { |v| LinkObject.new(v) } : LinkObject.new(value)
end
end
end
end