Class: RgGen::CUtility::VariableDeclaration

Inherits:
Object
  • Object
show all
Defined in:
lib/rggen/core_components/c_utility/variable_declaration.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ VariableDeclaration

Returns a new instance of VariableDeclaration.



4
5
6
# File 'lib/rggen/core_components/c_utility/variable_declaration.rb', line 4

def initialize(attributes)
  @attributes = attributes
end

Instance Method Details

#to_sObject



8
9
10
11
12
# File 'lib/rggen/core_components/c_utility/variable_declaration.rb', line 8

def to_s
  [
    data_type, identifier, default_value_assignment
  ].compact.join(' ')
end