lib/terraformer.rb in terraformer-0.0.3 vs lib/terraformer.rb in terraformer-0.0.4
- old
+ new
@@ -68,26 +68,17 @@
def bbox type = :bbox
Bounds.bounds self, type
end
def to_json *args
- h = self.to_hash
- h[:bbox] = bbox if Hash === args.last and args.pop[:include_bbox]
+ h = self.to_hash *args
+ args.pop if Hash === args.last
h.to_json *args
end
end
- # yikes!
- module BBox
-
- def to_json *args
- map {|e| e.to_f if e}.to_json *args
- end
-
- end
-
end
require 'terraformer/coordinate'
require 'terraformer/geodesic'
require 'terraformer/bounds'
@@ -99,5 +90,7 @@
require 'terraformer/multi_line_string'
require 'terraformer/polygon'
require 'terraformer/multi_polygon'
require 'terraformer/convex_hull'
require 'terraformer/circle'
+
+require 'terraformer/version'