Sha256: 146b5f4f59764697d9d4546d5728c491e45066dcfc95a1fbad9d4fac687555c6

Contents?: true

Size: 561 Bytes

Versions: 1

Compression:

Stored size: 561 Bytes

Contents

module Daijobu
  module Scheme
    
    # Daijobu::Scheme::Raw is the serialization for nothing. Seriously, it doesn't do anything.
    # It's rather dubious why you'd use this scheme for reading (if you're just going to be reading
    # as raw, why use this gem at all?), but writing raw is useful sometimes.
    class Raw

      # Doesn't parse anything. Just returns the string.
      def parse(str)
        str
      end
      
      # Doesn't unparse anything. Just returns the object.
      def unparse(obj)
        obj
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sander6-daijobu-0.2.1 lib/daijobu/schemes/raw.rb