lib/vedeu/geometry/generic_coordinate.rb in vedeu-0.6.10 vs lib/vedeu/geometry/generic_coordinate.rb in vedeu-0.6.11
- old
+ new
@@ -12,12 +12,10 @@
# @option attributes name [String]
# @option attributes type [Symbol]
# @option attributes offset [Fixnum]
# @return [Vedeu::Geometry::GenericCoordinate]
def initialize(attributes = {})
- @attributes = defaults.merge!(attributes)
-
- @attributes.each do |key, value|
+ defaults.merge!(attributes).each do |key, value|
instance_variable_set("@#{key}", value)
end
end
# Returns the maximum coordinate for an area.