Class: Languages::FunctionBehavior Abstract
- Inherits:
-
Object
- Object
- Languages::FunctionBehavior
- Defined in:
- lib/kuniri/language/abstract_container/structured_and_oo/function_behavior.rb
Overview
This class is abstract.
This class is responsible for handling elements whose the
behaviour is similar to a function. For example, method and global function has a very similar behaviour, because of this is a good idea to use this class as parent.
Direct Known Subclasses
Instance Method Summary collapse
-
#detect_function(pLine) ⇒ Object
protected
Detect function in line.
-
#get_function(pLine, type = 'globalFunction') ⇒ Object
Verify if line has a potential function.
-
#handling_default_parameter(pLine) ⇒ Object
protected
Handling default parameters.
-
#handling_parameter(pLine) ⇒ Object
protected
Handling parameters.
-
#remove_unnecessary_information(pLine) ⇒ Object
protected
Remove unnecessary information inside the string.
Instance Method Details
#detect_function(pLine) ⇒ Object (protected)
Detect function in line.
26 27 28 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/function_behavior.rb', line 26 def detect_function(pLine) raise NotImplementedError end |
#get_function(pLine, type = 'globalFunction') ⇒ Object
Verify if line has a potential function.
14 15 16 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/function_behavior.rb', line 14 def get_function(pLine, type = 'globalFunction') raise NotImplementedError end |
#handling_default_parameter(pLine) ⇒ Object (protected)
Handling default parameters.
40 41 42 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/function_behavior.rb', line 40 def handling_default_parameter(pLine) raise NotImplementedError end |
#handling_parameter(pLine) ⇒ Object (protected)
Handling parameters.
47 48 49 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/function_behavior.rb', line 47 def handling_parameter(pLine) raise NotImplementedError end |
#remove_unnecessary_information(pLine) ⇒ Object (protected)
Remove unnecessary information inside the string.
33 34 35 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/function_behavior.rb', line 33 def remove_unnecessary_information(pLine) raise NotImplementedError end |