module Derketo::Helpers

Public Class Methods

write(filename, text) click to toggle source
# File lib/derketo/helpers.rb, line 7
def self.write(filename, text)
  File.open(filename, 'w') do |file|
    file << text
  end
end

Public Instance Methods

clean(string) click to toggle source
# File lib/derketo/helpers.rb, line 3
def clean(string)
  string.gsub('::', '/').tr(',', '|').tr(':', '=').delete('#').delete('<').delete('>')
end