Class: Rley::SPPF::LeafNode
- Defined in:
- lib/rley/sppf/leaf_node.rb
Overview
Abstract class. The generalization for SPPF nodes that don't have child node.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from SPPFNode
Instance Method Summary collapse
-
#inspect ⇒ String
A text representation of the node.
- #key ⇒ String
Methods inherited from SPPFNode
Constructor Details
This class inherits a constructor from Rley::SPPF::SPPFNode
Instance Method Details
#inspect ⇒ String
Returns a text representation of the node.
11 12 13 |
# File 'lib/rley/sppf/leaf_node.rb', line 11 def inspect key end |
#key ⇒ String
16 17 18 |
# File 'lib/rley/sppf/leaf_node.rb', line 16 def key @key ||= to_string(0) end |