class RbPlusPlus::Writers::Base

Base class for all source code writers.

Attributes

builder[R]
working_dir[R]

Public Class Methods

new(builder, working_dir) click to toggle source

Writers all take a builder from which to write out the source code

# File lib/rbplusplus/writers/base.rb, line 11
def initialize(builder, working_dir)
  @builder = builder
  @working_dir = working_dir
end

Public Instance Methods

write() click to toggle source

Write out the code. Must be implemented in a subclass

# File lib/rbplusplus/writers/base.rb, line 18
def write
  raise "Writers must implement #write"
end