Make creating a bbox object from a string work.
authorTom Hughes <tom@compton.nu>
Sun, 7 Jun 2009 16:32:24 +0000 (16:32 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 7 Jun 2009 16:32:24 +0000 (16:32 +0000)
lib/bounding_box.rb

index d943768..30bbebb 100644 (file)
@@ -4,7 +4,7 @@ class BoundingBox
   end
 
   def self.from_s(s)
-    BoundingBox.new(s.split(/,/))
+    BoundingBox.new(*s.split(/,/))
   end
 
   def min_lon