Module: Rakuna::Provides::Output
- Includes:
- Contracts
- Included in:
- HTML, Text, Resource::Basic
- Defined in:
- lib/rakuna/provides/output.rb
Instance Method Summary collapse
Instance Method Details
#content_types_provided ⇒ Object
9 10 11 |
# File 'lib/rakuna/provides/output.rb', line 9 def content_types_provided @content_types_provided ||= [] end |
#output ⇒ Object
14 15 16 |
# File 'lib/rakuna/provides/output.rb', line 14 def output '' end |
#output_method ⇒ Object
19 20 21 22 23 |
# File 'lib/rakuna/provides/output.rb', line 19 def output_method @output_method ||= content_types_provided.select do |content_type| content_type.first == response.headers['Content-Type'] end.flatten.last end |