Class: Simplabs::Excellent::Parsing::ModuleContext

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

Overview

:nodoc:

Instance Attribute Summary collapse

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) ⇒ ModuleContext

Returns a new instance of ModuleContext.



16
17
18
19
20
21
# File 'lib/simplabs/excellent/parsing/module_context.rb', line 16

def initialize(exp, parent)
  super
  @name, @full_name = get_names
  @methods          = []
  @line_count       = count_lines
end

Dynamic Method Handling

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

Instance Attribute Details

#line_countObject (readonly)

Returns the value of attribute line_count.



14
15
16
# File 'lib/simplabs/excellent/parsing/module_context.rb', line 14

def line_count
  @line_count
end

#methodsObject (readonly)

Returns the value of attribute methods.



13
14
15
# File 'lib/simplabs/excellent/parsing/module_context.rb', line 13

def methods
  @methods
end