Class: AutoC::Module::Header

Inherits:
Object
  • Object
show all
Includes:
EntityContainer, SmartRenderer
Defined in:
lib/autoc/module.rb

Instance Attribute Summary collapse

Attributes included from SmartRenderer

#digest

Instance Method Summary collapse

Methods included from SmartRenderer

#render

Methods included from EntityContainer

#<<, #entities

Constructor Details

#initialize(m) ⇒ Header

Returns a new instance of Header.



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

def initialize(m) = @module = m

Instance Attribute Details

#moduleObject (readonly)

Returns the value of attribute module.



213
214
215
# File 'lib/autoc/module.rb', line 213

def module
  @module
end

Instance Method Details

#file_nameObject



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

def file_name = @file_name ||= "#{self.module.name}_auto.h"

#tagObject



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

def tag = "#{self.module.name}_auto_h".upcase