lib/rcap/cap_1_0/area.rb in rcap-1.2.0 vs lib/rcap/cap_1_0/area.rb in rcap-1.2.1

- old
+ new

@@ -124,17 +124,14 @@ CIRCLES_YAML = 'Circles' # :nodoc: GEOCODES_YAML = 'Geocodes' # :nodoc: POLYGONS_YAML = 'Polygons' # :nodoc: def to_yaml( options = {} ) # :nodoc: - circles_yaml = self.circles.map{ |circle| [ circle.lattitude, circle.longitude, circle.radius ]} - def circles_yaml.to_yaml_style; :inline; end - RCAP.attribute_values_to_hash( [ AREA_DESC_YAML, self.area_desc ], [ ALTITUDE_YAML, self.altitude ], [ CEILING_YAML, self.ceiling ], - [ CIRCLES_YAML, circles_yaml ], + [ CIRCLES_YAML, self.circles.map{ |circle| [ circle.lattitude, circle.longitude, circle.radius ]} ], [ GEOCODES_YAML, self.geocodes.inject({}){|h,geocode| h.merge( geocode.name => geocode.value )}], [ POLYGONS_YAML, self.polygons ] ).to_yaml( options ) end