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.3.1 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.3.0 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.24 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.23 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.22 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.21 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.20 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.19 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.18 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.17 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.16 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.15 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.14 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.13 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.12 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.11 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.10 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.9 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.8 lib/grid_generator/cubic/top_grid.rb
grid_generator-0.2.7 lib/grid_generator/cubic/top_grid.rb