Sha256: 7afbbfe2f634a20cb8d183e48ed70de0ade296eff60761298b873bd2a068af54

Contents?: true

Size: 361 Bytes

Versions: 5

Compression:

Stored size: 361 Bytes

Contents

module Dentaku
  module AST
    class Node
      def self.precedence
        0
      end

      def self.arity
        nil
      end

      def self.peek(*)
      end

      def dependencies(context = {})
        []
      end

      def type
        nil
      end

      def name
        self.class.name.to_s.split("::").last.upcase
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
dentaku-3.5.3 lib/dentaku/ast/node.rb
dentaku-3.5.2 lib/dentaku/ast/node.rb
dentaku_zevo-3.5.2 lib/dentaku/ast/node.rb
dentaku-3.5.1 lib/dentaku/ast/node.rb
dentaku-3.5.0 lib/dentaku/ast/node.rb