Sha256: 5c8122ae715a1b7fe8eb0ce2474edd15d9973f05da4decd476ec655ae21d4664

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

require_relative 'sppf_node'

module Rley # This module is used as a namespace
  module SPPF # This module is used as a namespace
    # Abstract class. The generalization for SPPF nodes that don't have
    # child node.
    class LeafNode < SPPFNode
      # @return [String] a text representation of the node.
      def inspect()
        key
      end

      # @return [String]
      def key()
        @key ||= to_string(0)
      end    
    end # class
  end # module
end # module
# End of file

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rley-0.7.07 lib/rley/sppf/leaf_node.rb
rley-0.7.06 lib/rley/sppf/leaf_node.rb
rley-0.7.05 lib/rley/sppf/leaf_node.rb
rley-0.7.04 lib/rley/sppf/leaf_node.rb