Class: ClassHDL::DefFunction
- Inherits:
-
Object
- Object
- ClassHDL::DefFunction
- Defined in:
- lib/tdl/class_hdl/hdl_function.rb
Instance Attribute Summary collapse
-
#return_type ⇒ Object
Returns the value of attribute return_type.
Instance Method Summary collapse
-
#initialize(sdlm, return_type = nil) ⇒ DefFunction
constructor
A new instance of DefFunction.
- #method_missing(method, *argvs, &block) ⇒ Object
Constructor Details
#initialize(sdlm, return_type = nil) ⇒ DefFunction
Returns a new instance of DefFunction.
158 159 160 161 |
# File 'lib/tdl/class_hdl/hdl_function.rb', line 158 def initialize(sdlm,return_type=nil) @return_type = return_type @sdlm = sdlm end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *argvs, &block) ⇒ Object
163 164 165 166 |
# File 'lib/tdl/class_hdl/hdl_function.rb', line 163 def method_missing(method,*argvs,&block) ClassHDL::Function(@sdlm,method,return_type,*argvs,&block) ClassHDL.enable_SdlModule_port end |
Instance Attribute Details
#return_type ⇒ Object
Returns the value of attribute return_type.
157 158 159 |
# File 'lib/tdl/class_hdl/hdl_function.rb', line 157 def return_type @return_type end |