Class: GridGenerator::Cubic::RightGrid

Inherits:
Grid
  • Object
show all
Defined in:
lib/grid_generator/cubic/right_grid.rb

Constant Summary

Constants inherited from Grid

Grid::COLOURS

Instance Attribute Summary

Attributes inherited from Grid

#squares, #units, #x, #y

Instance Method Summary collapse

Methods inherited from Grid

#==, #base_shape, #base_shape_style, #bottom_left, #bottom_right, #column_line_end, #column_line_start, #columns, #element_shapes, #height, #height_unit, #initialize, #offset_unit, #points, #row_line_end, #row_line_start, #rows, #square_position, #to_svg, #top_left, #top_left_square, #top_right, #width, #width_unit

Constructor Details

This class inherits a constructor from GridGenerator::Cubic::Grid

Instance Method Details

#line_offset_amountObject



10
11
12
# File 'lib/grid_generator/cubic/right_grid.rb', line 10

def line_offset_amount
  width
end

#sideObject



6
7
8
# File 'lib/grid_generator/cubic/right_grid.rb', line 6

def side
  :right
end

#square_offset_amountObject



14
15
16
# File 'lib/grid_generator/cubic/right_grid.rb', line 14

def square_offset_amount
  width - 1 
end