class CsvBlueprints::PlanBuilder

Public Class Methods

new(blueprint) click to toggle source
# File lib/csv_blueprints/plan_builder.rb, line 3
def initialize(blueprint)
  @blueprint = blueprint
  @plan = Plan.new(@blueprint)
end

Public Instance Methods

customized(number, overrides) click to toggle source
# File lib/csv_blueprints/plan_builder.rb, line 13
def customized(number, overrides)
  number.times { @plan.add_row(overrides) }
  self
end
standard(number) click to toggle source
# File lib/csv_blueprints/plan_builder.rb, line 8
def standard(number)
  number.times { @plan.add_row }
  self
end
write(out = STDOUT) click to toggle source
# File lib/csv_blueprints/plan_builder.rb, line 18
def write(out = STDOUT)
  PlanWriter.new(@plan).write(out)
end