Class: Boxbot::Compute::TabWidthResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/boxbot/compute/tab_calculator.rb

Overview

Holds the result of Tab Width Computation.

Instance Attribute Summary collapse

Instance Attribute Details

#dimensionString

name

Returns:

  • (String)

    the current value of dimension



15
16
17
# File 'lib/boxbot/compute/tab_calculator.rb', line 15

def dimension
  @dimension
end

#lengthFloat

the length of the dimension

Returns:

  • (Float)

    the current value of length



15
16
17
# File 'lib/boxbot/compute/tab_calculator.rb', line 15

def length
  @length
end

#tab_countInteger

the total number of tabs along this dimension

Returns:

  • (Integer)

    the current value of tab_count



15
16
17
# File 'lib/boxbot/compute/tab_calculator.rb', line 15

def tab_count
  @tab_count
end

#tab_widthFloat

length of each tab without the kerf adjustment

Returns:

  • (Float)

    the current value of tab_width



15
16
17
# File 'lib/boxbot/compute/tab_calculator.rb', line 15

def tab_width
  @tab_width
end