Sha256: 93d9b9dfb25dab54c59d092a2064ba0def141dd1340a8e73b6f32a89907d520b

Contents?: true

Size: 294 Bytes

Versions: 3

Compression:

Stored size: 294 Bytes

Contents

module ROXML
  module CoreExtensions
    module Array #:nodoc:all
      module Conversions
        def apply_to(val)
          # Only makes sense for arrays of blocks... maybe better outside Array...
          inject(val) {|val, block| block.call(val) }
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
Empact-roxml-2.5.2 lib/roxml/extensions/array/conversions.rb
Empact-roxml-2.5.3 lib/roxml/extensions/array/conversions.rb
doxo-roxml-2.5.3 lib/roxml/extensions/array/conversions.rb