Module: Rakuna::Provides::HTML

Includes:
Contracts, Output
Defined in:
lib/rakuna/provides/html.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/html.rb', line 11

def content_types_provided
  @content_types_provided ||= super << ['text/html', :to_html]
end

#to_htmlObject



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

def to_html
  output
end