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.
9 10 11 |
# File 'lib/rley/sppf/leaf_node.rb', line 9 def inspect() key end |
#key ⇒ String
14 15 16 |
# File 'lib/rley/sppf/leaf_node.rb', line 14 def key() @key ||= to_string(0) end |