Class: RgGen::SystemVerilog::Common::Utility::FunctionDefinition

Inherits:
StructureDefinition
  • Object
show all
Defined in:
lib/rggen/systemverilog/common/utility/function_definition.rb

Instance Method Summary collapse

Methods inherited from StructureDefinition

#initialize

Constructor Details

This class inherits a constructor from RgGen::SystemVerilog::Common::Utility::StructureDefinition

Instance Method Details

#return_type(**attributes) ⇒ Object



12
13
14
15
16
# File 'lib/rggen/systemverilog/common/utility/function_definition.rb', line 12

def return_type(**attributes)
  attributes.empty? ||
    (@return_type = DataObject.new(:variable, **attributes))
  @return_type
end