Class: Umwelt::Semantic::Plain::Space

Inherits:
Base
  • Object
show all
Defined in:
lib/umwelt/semantic/plain/space.rb

Instance Attribute Summary

Attributes inherited from Base

#node

Instance Method Summary collapse

Methods inherited from Base

#default_location

Methods inherited from Base

#ancestry_path, #code, #context, #csymbol, #initialize, #label, #path, #s, #tail_path

Constructor Details

This class inherits a constructor from Umwelt::Semantic::Base

Instance Method Details

#astObject



5
6
7
# File 'lib/umwelt/semantic/plain/space.rb', line 5

def ast
  s(:module, const, nil)
end

#constObject



9
10
11
# File 'lib/umwelt/semantic/plain/space.rb', line 9

def const
  s(:const, context&.const, csymbol)
end