Sha256: af3f2def94d6836f2606332e237ff8d65d1f9e264a9290bcd925a7dd4ba4dcb2

Contents?: true

Size: 303 Bytes

Versions: 56

Compression:

Stored size: 303 Bytes

Contents

require_relative 'grid'
require_relative 'units_factory'

module GridGenerator
  module Cubic
    class TopGrid < Cubic::Grid
      def side
        :top
      end
  
      def line_offset_amount
        height
      end
  
      def square_offset_amount
        height - 1
      end
    end
  end
end 

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
grid_generator-0.6.7 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.6.6 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.6.5 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.6.4 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.6.3 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.6.2 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.6.1 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.6.0 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.5.3 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.5.2 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.5.1 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.5.0 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.4.5 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.4.4 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.4.3 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.4.2 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.4.1 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.4.0 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.3.3 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.3.2 lib/grid_generator/cubic/top_grid.rb