Class: RoadForest::ContentHandling::Wrap::Render

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/roadforest/content-handling/handler-wrap.rb

Instance Attribute Summary

Attributes inherited from Wrapper

#handler, #type

Instance Method Summary collapse

Methods inherited from Wrapper

#initialize, #local_to_network, #network_to_local

Constructor Details

This class inherits a constructor from RoadForest::ContentHandling::Wrap::Wrapper

Instance Method Details

#call(resource) ⇒ Object



23
24
25
# File 'lib/roadforest/content-handling/handler-wrap.rb', line 23

def call(resource)
  @handler.render_for(resource)
end

#content_type_headerObject



27
28
29
# File 'lib/roadforest/content-handling/handler-wrap.rb', line 27

def content_type_header
  @type.content_type_header
end