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.
156 157 158 159 |
# File 'lib/tdl/class_hdl/hdl_function.rb', line 156 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
161 162 163 164 |
# File 'lib/tdl/class_hdl/hdl_function.rb', line 161 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.
155 156 157 |
# File 'lib/tdl/class_hdl/hdl_function.rb', line 155 def return_type @return_type end |