Class: AutoC::Code

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

Overview

Helper class to represent plain C side code block

Direct Known Subclasses

SystemHeader

Constant Summary

Constants included from Entity

Entity::ReferenceSet

Instance Method Summary collapse

Methods included from Entity

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

Constructor Details

#initialize(interface: nil, implementation: nil, definitions: nil) ⇒ Code

Returns a new instance of Code.



403
404
405
406
407
# File 'lib/autoc/module.rb', line 403

def initialize(interface: nil, implementation: nil, definitions: nil)
  @interface_ = interface
  @definitions_ = definitions
  @implementation_ = implementation
end

Instance Method Details

#inspectObject



409
# File 'lib/autoc/module.rb', line 409

def inspect = "... <#{self.class}>"