Module: Rakuna::Provides::Text

Includes:
Contracts, Output
Defined in:
lib/rakuna/provides/text.rb

Instance Method Summary collapse

Methods included from Output

#output, #output_method

Instance Method Details

#content_types_providedObject



11
12
13
# File 'lib/rakuna/provides/text.rb', line 11

def content_types_provided
  @content_types_provided ||= super << ['text/plain', :to_text]
end

#to_textObject



16
17
18
# File 'lib/rakuna/provides/text.rb', line 16

def to_text
  output
end