Module: Protobuf::Generators::Printable
- Included in:
- Base, GroupGenerator
- Defined in:
- lib/protobuf/generators/printable.rb
Constant Summary collapse
- PARENT_CLASS_MESSAGE =
"::Protobuf::Message".freeze
- PARENT_CLASS_ENUM =
"::Protobuf::Enum".freeze
- PARENT_CLASS_SERVICE =
"::Protobuf::Rpc::Service".freeze
Instance Method Summary collapse
-
#init_printer(indent_level) ⇒ Object
Initialize the printer.
Instance Method Details
#init_printer(indent_level) ⇒ Object
Initialize the printer. Must be called by any class/module that includes the Printable module.
12 13 14 15 |
# File 'lib/protobuf/generators/printable.rb', line 12 def init_printer(indent_level) @io = ::StringIO.new self.current_indent = indent_level.to_i end |