Class: RgGen::VerilogUtility::Declaration

Inherits:
Object
  • Object
show all
Defined in:
lib/rggen/core_components/verilog_utility/declaration.rb

Instance Method Summary collapse

Constructor Details

#initialize(declation_type, attributes) ⇒ Declaration

Returns a new instance of Declaration.



4
5
6
7
# File 'lib/rggen/core_components/verilog_utility/declaration.rb', line 4

def initialize(declation_type, attributes)
  @declation_type = declation_type
  @attributes     = attributes
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/rggen/core_components/verilog_utility/declaration.rb', line 9

def to_s
  code_snippets.join(' ')
end