Sha256: bb119b805fba108e78ff59122d6959bb5afa4ce3818878d3895ca596a033c1e9

Contents?: true

Size: 279 Bytes

Versions: 3

Compression:

Stored size: 279 Bytes

Contents

module Derketo
  module Helpers
    def clean(string)
      string.gsub('::', '/').tr(',', '|').tr(':', '=').delete('#').delete('<').delete('>')
    end

    def self.write(filename, text)
      File.open(filename, 'w') do |file|
        file << text
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
derketo-0.1.2 lib/derketo/helpers.rb
derketo-0.1.1 lib/derketo/helpers.rb
derketo-0.1.0 lib/derketo/helpers.rb