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.



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_typeObject

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