Sha256: af7ec5731d78e1f49f9f453e6242de80f18f417d448b0c0effe9aa97e2f1d242
Contents?: true
Size: 479 Bytes
Versions: 4
Compression:
Stored size: 479 Bytes
Contents
module Findr # Wrapper class for String#encode (Ruby >=1.9) and Iconv#iconv (Ruby 1.8). class Encoder class Error < Findr::Error; end include StrategyProxy @@strategy = RUBY_VERSION < Findr::FIRST_RUBY_WITHOUT_ICONV ? Encoder::Iconv : Encoder::String provides :decode, :string provides :encode, :string, :into_coding singleton_provides :list def initialize( other_codings ) @strategy = @@strategy.new(other_codings) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
findr-0.0.8.pre3 | lib/findr/encoder.rb |
findr-0.0.8.pre2 | lib/findr/encoder.rb |
findr-0.0.8.pre1 | lib/findr/encoder.rb |
findr-0.0.7 | lib/findr/encoder.rb |