Class: RoadForest::ContentHandling::Wrap::Parse

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

#add_child(resource) ⇒ Object



37
38
39
# File 'lib/roadforest/content-handling/handler-wrap.rb', line 37

def add_child(resource)
  @handler.add_child_to(resource)
end

#call(resource) ⇒ Object



33
34
35
# File 'lib/roadforest/content-handling/handler-wrap.rb', line 33

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