lib/geometer/dimensions.rb in geometer-0.1.0 vs lib/geometer/dimensions.rb in geometer-0.1.1

- old
+ new

@@ -1,7 +1,9 @@ module Geometer class Dimensions < Struct.new(:width, :height) + include Geometer::PointHelpers + def inspect "#{width}x#{height}" end def contains?(position) @@ -37,7 +39,11 @@ locs.push coord(x,y) end end locs end + end + + module DimensionHelpers + def dim(w,h); Dimensions.new(w,h) end end end