Module: Protobug::Compiler::Builder

Included in:
Group
Defined in:
lib/protobug/compiler/builder.rb,
lib/protobug/compiler/builder_gen.rb

Defined Under Namespace

Classes: Comment, File, Group, Statement, Token

Class Method Summary collapse

Class Method Details

.build_fileObject



10
11
12
13
14
15
16
17
18
# File 'lib/protobug/compiler/builder.rb', line 10

def self.build_file
  builder = File.new
  if block_given?
    yield builder
    builder.render
  else
    builder
  end
end