Class: Simplabs::Excellent::Parsing::ModuleContext
- Inherits:
-
SexpContext
- Object
- SexpContext
- Simplabs::Excellent::Parsing::ModuleContext
- Includes:
- Scopeable
- Defined in:
- lib/simplabs/excellent/parsing/module_context.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#line_count ⇒ Object
readonly
Returns the value of attribute line_count.
-
#methods ⇒ Object
readonly
Returns the value of attribute methods.
Attributes inherited from SexpContext
Instance Method Summary collapse
-
#initialize(exp, parent) ⇒ ModuleContext
constructor
A new instance of ModuleContext.
Methods inherited from SexpContext
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_count ⇒ Object (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 |
#methods ⇒ Object (readonly)
Returns the value of attribute methods.
13 14 15 |
# File 'lib/simplabs/excellent/parsing/module_context.rb', line 13 def methods @methods end |