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
74 75 76 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74 def fitness @fitness end |
#line ⇒ Object
Returns the value of attribute line
74 75 76 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74 def line @line end |
#position ⇒ Object
Returns the value of attribute position
74 75 76 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74 def position @position end |
#previous ⇒ Object
Returns the value of attribute previous
74 75 76 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74 def previous @previous end |
#total_demerits ⇒ Object
Returns the value of attribute total_demerits
74 75 76 |
# File 'lib/arrolio/text_layout/knuth_plass/breaker.rb', line 74 def total_demerits @total_demerits end |