Sha256: d3214c350c1384e3f0881c5f3cd9ce134d7e3ecafe9659cfeafe64e4b3accade

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

class Code
  class Node
    def initialize(parsed)
      return if parsed.nil? || parsed.empty?

      raise NotImplementedError, "#{self.class.name}: #{parsed.inspect}"
    end

    def evaluate(**_args)
      raise NotImplementedError, "#{self.class.name}#evaluate"
    end

    def resolve(...)
      evaluate(...)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
code-ruby-0.10.4 lib/code/node.rb
code-ruby-0.10.3 lib/code/node.rb
code-ruby-0.10.2 lib/code/node.rb
code-ruby-0.10.1 lib/code/node.rb
code-ruby-0.10.0 lib/code/node.rb