Sha256: 5a72aa35060708162bc49fd29d0483e2e5128e617828101c7d70b26284df21f1

Contents?: true

Size: 553 Bytes

Versions: 11

Compression:

Stored size: 553 Bytes

Contents

require "ginny"

module Eddy
  module Build
    module Loop
      # Generate Ruby code for an EDI loop.
      #
      # @param summary [Eddy::Summary::Loop]
      # @param t_set_id [String]
      # @return [String]
      def self.render(summary, t_set_id)
        base = Eddy::Build::Loop::Base.new(summary, t_set_id).render()
        repeat = Eddy::Build::Loop::Repeat.new(summary, t_set_id).render()
        return Ginny.mod(("\n" + base + "\n\n" + repeat + "\n"), "Eddy", "TransactionSets", t_set_id, "Loops", summary.id)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
eddy-0.10.0 lib/eddy/build/loop/render.rb
eddy-0.9.2 lib/eddy/build/loop/render.rb
eddy-0.9.1 lib/eddy/build/loop/render.rb
eddy-0.9.0 lib/eddy/build/loop/render.rb
eddy-0.8.4 lib/eddy/build/loop/render.rb
eddy-0.8.3 lib/eddy/build/loop/render.rb
eddy-0.8.2 lib/eddy/build/loop/render.rb
eddy-0.8.1 lib/eddy/build/loop/render.rb
eddy-0.8.0 lib/eddy/build/loop/render.rb
eddy-0.7.0 lib/eddy/build/loop/render.rb
eddy-0.6.0 lib/eddy/build/loop/render.rb