Class: RubyLabs::LinearDSLab::StackView

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

Overview

A Struct is a convenient way to bundle a number of attributes together, using accessor methods, without having to write an explicit class. This StackView object is being used to store the location of all the rectangles, and its corresponding values.

Instance Attribute Summary collapse

Instance Attribute Details

#cellsObject

Returns the value of attribute cells

Returns:

  • (Object)

    the current value of cells



10
11
12
# File 'lib/lineardslab.rb', line 10

def cells
  @cells
end

#valuesObject

Returns the value of attribute values

Returns:

  • (Object)

    the current value of values



10
11
12
# File 'lib/lineardslab.rb', line 10

def values
  @values
end