Sha256: 1417b9f07a1465161adfae4d3cf14b90957ddb6ce98e789ad6f970a87e5dcd3a

Contents?: true

Size: 269 Bytes

Versions: 3

Compression:

Stored size: 269 Bytes

Contents

module Savage
  module Directions
    class ClosePath < Direction

      def initialize(absolute=true)
        super(absolute)
      end

      def to_a
        [command_code]
      end

      def command_code
        (absolute?) ? 'Z' : 'z'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
text2path-0.0.2 lib/ext/savage/lib/savage/directions/close_path.rb
text2path-0.0.1 lib/ext/savage/lib/savage/directions/close_path.rb
savage-1.2.0 lib/savage/directions/close_path.rb