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.2.6 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.5 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.4 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.3 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.2 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.1 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.0 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.1.12 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.1.11 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.1.10 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.1.9 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.1.8 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.1.7 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.1.6 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.1.5 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.1.4 lib/grid_generator/cubic/top_grid.rb