Sha256: 4e0eea5d4cf3e5cada992bbcb91db19e66e84e1b0418bd83ceb0ab2d5abc68df

Contents?: true

Size: 270 Bytes

Versions: 2

Compression:

Stored size: 270 Bytes

Contents

module Pacto
  module Handlers
    module TextHandler
      class << self
        def raw(body)
          body.to_s
        end

        def parse(body)
          body.to_s
        end

        # TODO: Something like validate(contract, body)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pacto-0.4.0.rc3 lib/pacto/handlers/text_handler.rb
pacto-0.4.0.rc2 lib/pacto/handlers/text_handler.rb