Class: ClassHDL::DefFunction

Inherits:
Object
  • Object
show all
Defined in:
lib/tdl/class_hdl/hdl_function.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

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