Class: Arrolio::TextLayout::KnuthPlass::Breaker::Node
- Inherits:
-
Struct
- Object
- Struct
- Arrolio::TextLayout::KnuthPlass::Breaker::Node
- Defined in:
- lib/arrolio/text_layout/knuth_plass/breaker.rb
Overview
Internal: a node in the dynamic programming graph.
Instance Attribute Summary collapse
-
#fitness ⇒ Object
Returns the value of attribute fitness.
-
#line ⇒ Object
Returns the value of attribute line.
-
#position ⇒ Object
Returns the value of attribute position.
-
#previous ⇒ Object
Returns the value of attribute previous.
-
#total_demerits ⇒ Object
Returns the value of attribute total_demerits.
Instance Attribute Details
#fitness ⇒ Object
Returns the value of attribute fitness
72 73 74 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72 def fitness @fitness end |
#line ⇒ Object
Returns the value of attribute line
72 73 74 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72 def line @line end |
#position ⇒ Object
Returns the value of attribute position
72 73 74 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72 def position @position end |
#previous ⇒ Object
Returns the value of attribute previous
72 73 74 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72 def previous @previous end |
#total_demerits ⇒ Object
Returns the value of attribute total_demerits
72 73 74 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 72 def total_demerits @total_demerits end |