Class: RoadForest::TypeHandlers::RDFaWriter::PropertyAffordanceDecorator

Inherits:
AffordanceDecorator show all
Defined in:
lib/roadforest/type-handlers/rdfa-writer/environment-decorator.rb

Constant Summary

Constants included from AffordanceClient

AffordanceClient::Af

Instance Attribute Summary

Attributes inherited from EnvironmentDecorator

#_decorated_

Class Method Summary collapse

Methods inherited from AffordanceDecorator

#affordance?, #graph, #rdfpost_curie, #template_kinds

Methods included from AffordanceClient

#affordance_node?, #affordance_present, #affordance_type_in_graph?, #affordances_in_graph?, #all_affordances, #has_affordance, #parameterized_navigation_affordance_in_graph?, #payload_has_param, #query_matches

Methods inherited from EnvironmentDecorator

decorates, #initialize, #like_a?, perhaps_decorate, registry_purpose, #setup

Methods included from Utility::ClassRegistry::Registrar

#all_names, extended, #get, #map_classes, #register, #registry

Constructor Details

This class inherits a constructor from RoadForest::TypeHandlers::RDFaWriter::EnvironmentDecorator

Class Method Details

.can_decorate?(env) ⇒ Boolean

Returns:

  • (Boolean)


275
276
277
278
279
# File 'lib/roadforest/type-handlers/rdfa-writer/environment-decorator.rb', line 275

def self.can_decorate?(env)
  return false unless (env._base_env_.class <= PropertyEnvironment)
  return false unless (env.parent.like_a? AffordanceDecorator)
  return true
end