Sha256: 555e4f6a094955482b323969143569686be2689cb14358ef47d891d707aa5ffc

Contents?: true

Size: 315 Bytes

Versions: 8

Compression:

Stored size: 315 Bytes

Contents

module DifferentOFS
  module WithDifferentOFS
    def setup
      super
      @ofs, $, = $,, "-"
    end
    def teardown
      $, = @ofs
      super
    end
  end

  def self.extended(klass)
    super(klass)
    klass.const_set(:DifferentOFS, Class.new(klass).class_eval {include WithDifferentOFS}).name
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fastcsv-0.0.7 test/with_different_ofs.rb
compact_csv-1.0.0 spec/original_csv_tests/with_different_ofs.rb
compact_csv-0.0.2 spec/original_csv_tests/with_different_ofs.rb
compact_csv-0.0.1 spec/original_csv_tests/with_different_ofs.rb
fastcsv-0.0.6 test/with_different_ofs.rb
fastcsv-0.0.5 test/with_different_ofs.rb
fastcsv-0.0.4 test/with_different_ofs.rb
fastcsv-0.0.3 test/with_different_ofs.rb