Class: Simplabs::Excellent::Parsing::ResbodyContext

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

Overview

:nodoc:

Constant Summary collapse

STATEMENT_NODES =
[:fcall, :return, :attrasgn, :vcall, :call, :str, :lit, :hash, :false, :true, :nil]

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

Returns a new instance of ResbodyContext.



11
12
13
14
# File 'lib/simplabs/excellent/parsing/resbody_context.rb', line 11

def initialize(exp, parent)
  super
  @contains_statements = contains_statements?
end

Dynamic Method Handling

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

Instance Method Details

#has_statements?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/simplabs/excellent/parsing/resbody_context.rb', line 16

def has_statements?
  @contains_statements
end