Class: Grid

Inherits:
Struct
  • Object
show all
Defined in:
lib/grid.rb

Instance Attribute Summary collapse

Instance Attribute Details

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



1
2
3
# File 'lib/grid.rb', line 1

def height
  @height
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



1
2
3
# File 'lib/grid.rb', line 1

def width
  @width
end