Class: Protobuf::Generate::Language::C
- Inherits:
-
Protobuf::Generate::Language
- Object
- Protobuf::Generate::Language
- Protobuf::Generate::Language::C
- Defined in:
- lib/protobuf/generate/language/c.rb
Defined Under Namespace
Modules: Conventions
Instance Method Summary collapse
-
#initialize(ast, conventions = Conventions) ⇒ C
constructor
– TODO: Break C into base class, c-static, c-dynamic.
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 |