Class: Protobuf::Generate::Language::C

Inherits:
Protobuf::Generate::Language show all
Defined in:
lib/protobuf/generate/language/c.rb

Defined Under Namespace

Modules: Conventions

Instance Method Summary collapse

Methods inherited from Protobuf::Generate::Language

find, #generate, inherited, match, templates, #templates

Constructor Details

#initialize(ast, conventions = Conventions) ⇒ C

– TODO: Break C into base class, c-static, c-dynamic.



27
28
29
30
31
# File 'lib/protobuf/generate/language/c.rb', line 27

def initialize ast, conventions = Conventions
  validate ast
  ast.extend(conventions)
  super ast
end