Sha256: 09bbf87c2869e9b19d9da3a337688b1828201cda2b53fcca119f56645d88fe6a

Contents?: true

Size: 409 Bytes

Versions: 3

Compression:

Stored size: 409 Bytes

Contents

require 'contracts'
require 'rakuna/provides/output'

module Rakuna
  module Provides
    module Text
      include Contracts
      include Rakuna::Provides::Output

      Contract None => ArrayOf[Array]
      def content_types_provided
        @content_types_provided ||= super << ['text/plain', :to_text]
      end

      Contract None => String
      def to_text
        output
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rakuna-core-1.0.2 lib/rakuna/provides/text.rb
rakuna-core-1.0.1 lib/rakuna/provides/text.rb
rakuna-core-1.0.0 lib/rakuna/provides/text.rb