Class: AutoC::SystemHeader

Inherits:
Code
  • Object
show all
Defined in:
lib/autoc/module.rb

Overview

Helper class to inject a system-wide header into the C side interface part of the module

Constant Summary

Constants included from Entity

Entity::ReferenceSet

Instance Method Summary collapse

Methods inherited from Code

#inspect

Methods included from Entity

#<=>, #complexity, #dependencies, #forward_declarations, #implementation, #interface, #position, #references, #total_dependencies, #total_references

Constructor Details

#initialize(header) ⇒ SystemHeader

Returns a new instance of SystemHeader.



430
431
432
433
434
# File 'lib/autoc/module.rb', line 430

def initialize(header)
  super interface: %{
    #include <#{header}>
  }
end