Class: Simplabs::Excellent::Parsing::GvarContext

Inherits:
SexpContext
  • Object
show all
Defined in:
lib/simplabs/excellent/parsing/gvar_context.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from SexpContext

#file, #line, #name, #parent

Instance Method Summary collapse

Methods inherited from SexpContext

#full_name, #method_missing

Constructor Details

#initialize(exp, parent) ⇒ GvarContext

Returns a new instance of GvarContext.



9
10
11
12
13
# File 'lib/simplabs/excellent/parsing/gvar_context.rb', line 9

def initialize(exp, parent)
  super
  @name      = exp[1].to_s.sub(/^\$/, '')
  @full_name = @name
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Simplabs::Excellent::Parsing::SexpContext