Class: Dentaku::AST::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/dentaku/ast/node.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.arityObject



8
9
10
# File 'lib/dentaku/ast/node.rb', line 8

def self.arity
  nil
end

.precedenceObject



4
5
6
# File 'lib/dentaku/ast/node.rb', line 4

def self.precedence
  0
end

.resolve_classObject



12
13
14
# File 'lib/dentaku/ast/node.rb', line 12

def self.resolve_class(*)
  self
end

Instance Method Details

#dependencies(context = {}) ⇒ Object



16
17
18
# File 'lib/dentaku/ast/node.rb', line 16

def dependencies(context = {})
  []
end

#nameObject



24
25
26
# File 'lib/dentaku/ast/node.rb', line 24

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

#typeObject



20
21
22
# File 'lib/dentaku/ast/node.rb', line 20

def type
  nil
end