Sha256: 4840e2348c28619a7ec9c82a38fd997e97f75324159c81fd8f71e8417e136b17

Contents?: true

Size: 360 Bytes

Versions: 14

Compression:

Stored size: 360 Bytes

Contents

module ROXML
  module CoreExtensions
    module String #:nodoc:all
      module Iterators
        # Allows you to iterate over and modify the sub-strings between _separator_.  Returns the joined result of the modification.
        def between(separator, &block)
          split(separator).collect(&block).join(separator)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
Empact-roxml-2.4.1 lib/roxml/extensions/string/iterators.rb
Empact-roxml-2.4.2 lib/roxml/extensions/string/iterators.rb
Empact-roxml-2.4.3 lib/roxml/extensions/string/iterators.rb
Empact-roxml-2.5.1 lib/roxml/extensions/string/iterators.rb
Empact-roxml-2.5.2 lib/roxml/extensions/string/iterators.rb
Empact-roxml-2.5.3 lib/roxml/extensions/string/iterators.rb
doxo-roxml-2.5.3 lib/roxml/extensions/string/iterators.rb
roxml-2.4.2 lib/roxml/extensions/string/iterators.rb
roxml-2.5.1 lib/roxml/extensions/string/iterators.rb
roxml-2.4.3 lib/roxml/extensions/string/iterators.rb
roxml-2.4.1 lib/roxml/extensions/string/iterators.rb
roxml-2.5.0 lib/roxml/extensions/string/iterators.rb
roxml-2.5.2 lib/roxml/extensions/string/iterators.rb
roxml-2.5.3 lib/roxml/extensions/string/iterators.rb