Sha256: 9fb7542814de6a3e037e6da4ddeb0d83aa1a05efef78b702a7e0f8a19d059c76
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
require_relative 'node' require_relative 'function_registry' module Dentaku module AST class Function < Node def initialize(*args) @args = args end def dependencies(context={}) @args.flat_map { |a| a.dependencies(context) } end def self.get(name) registry.get(name) end def self.register(name, type, implementation) registry.register(name, type, implementation) end def self.register_class(name, function_class) registry.register_class(name, function_class) end def self.registry @registry ||= FunctionRegistry.new end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dentaku-2.0.11 | lib/dentaku/ast/function.rb |