Class: Arrolio::TextLayout::KnuthPlass::Breaker::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/arrolio/text_layout/knuth_plass/breaker.rb

Overview

Internal: a node in the dynamic programming graph.

Instance Attribute Summary collapse

Instance Attribute Details

#fitnessObject

Returns the value of attribute fitness

Returns:

  • (Object)

    the current value of fitness



74
75
76
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74

def fitness
  @fitness
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



74
75
76
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74

def line
  @line
end

#positionObject

Returns the value of attribute position

Returns:

  • (Object)

    the current value of position



74
75
76
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74

def position
  @position
end

#previousObject

Returns the value of attribute previous

Returns:

  • (Object)

    the current value of previous



74
75
76
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74

def previous
  @previous
end

#total_demeritsObject

Returns the value of attribute total_demerits

Returns:

  • (Object)

    the current value of total_demerits



74
75
76
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74

def total_demerits
  @total_demerits
end