Sha256: 1d8ff144208bbb4e0b8360efd3635aee2f9376cc6adb34283d8de9d780864f39

Contents?: true

Size: 150 Bytes

Versions: 1

Compression:

Stored size: 150 Bytes

Contents

class String
  def to_ascii
    encode("UTF-8", :invalid => :replace, :undef => :replace, :replace => "").force_encoding('UTF-8') rescue ""
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ankusa-0.1.1 lib/ankusa/extensions.rb