Class: Languages::ModuleNamespace Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/kuniri/language/abstract_container/structured_and_oo/module_namespace.rb

Overview

This class is abstract.

Class responsible for handling namespaces, module, package or

anything similar.

Direct Known Subclasses

Ruby::ModuleNamespaceRuby

Instance Method Summary collapse

Instance Method Details

#detect_module(pLine) ⇒ Object (protected)

Verify if line has a potential module.

Parameters:

  • pLine

    String for try to find a pattern.

Returns:

  • Return an string pre-processed, or nil in case of not match string.

Raises:

  • (NotImplementedError)


22
23
24
# File 'lib/kuniri/language/abstract_container/structured_and_oo/module_namespace.rb', line 22

def detect_module(pLine)
  raise NotImplementedError
end

#get_module(pLine) ⇒ Object

Get a string and try to find a pattern, that match or not with module.

Parameters:

  • pLine

    Receives a line for try to find module inside it.

Returns:

  • Return an ModuleNamespaceData.

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/kuniri/language/abstract_container/structured_and_oo/module_namespace.rb', line 12

def get_module(pLine)
  raise NotImplementedError
end

#remove_unnecessary_information(pLine) ⇒ Object (protected)

Return an string.

Parameters:

  • pLine

    Receives a line for handling.

Returns:

  • Return an string.

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/kuniri/language/abstract_container/structured_and_oo/module_namespace.rb', line 28

def remove_unnecessary_information(pLine)
  raise NotImplementedError
end