Sha256: dc9e68cc6422928f0c359028cc915442c80bc13a19c8ad1754033e8e7d9c7c9a
Contents?: true
Size: 490 Bytes
Versions: 1
Compression:
Stored size: 490 Bytes
Contents
module Draught module Transformations module Common def call(point) raise NotImplementedError, "Classes including Transformations::Common must implement #call, taking a Point and returning a new, transformed, Point" end def affine? raise NotImplementedError, "Classes including Transformations::Common must implement #affine?" end def to_transform self end def transforms [self] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draught-0.1.0 | lib/draught/transformations/common.rb |