Sha256: b72ce20ed532bb54276425d687f9b893a38eceec49aa4ac59aff1633e792eda5
Contents?: true
Size: 672 Bytes
Versions: 2
Compression:
Stored size: 672 Bytes
Contents
module Dentaku module AST class Access def self.arity 2 end def self.min_param_count arity end def self.max_param_count arity end def self.peek(*) end def initialize(data_structure, index) @structure = data_structure @index = index end def value(context = {}) structure = @structure.value(context) index = @index.value(context) structure[index] end def dependencies(context = {}) @structure.dependencies(context) + @index.dependencies(context) end def type nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dentaku-3.3.4 | lib/dentaku/ast/access.rb |
dentaku-3.3.3 | lib/dentaku/ast/access.rb |