Class: EacRailsUtils::OpenGraphProtocolHelper::RootEntry

Inherits:
AbstractEntry
  • Object
show all
Defined in:
app/helpers/eac_rails_utils/open_graph_protocol_helper.rb

Instance Attribute Summary

Attributes inherited from AbstractEntry

#view

Instance Method Summary collapse

Methods inherited from AbstractEntry

#child, #children_tags, #data=, #initialize

Constructor Details

This class inherits a constructor from EacRailsUtils::OpenGraphProtocolHelper::AbstractEntry

Instance Method Details

#componentsObject



99
100
101
# File 'app/helpers/eac_rails_utils/open_graph_protocol_helper.rb', line 99

def components
  []
end

#content=(_a_content) ⇒ Object



103
104
105
# File 'app/helpers/eac_rails_utils/open_graph_protocol_helper.rb', line 103

def content=(_a_content)
  raise 'Root OGP entry cannot have content'
end

#tagObject



107
108
109
# File 'app/helpers/eac_rails_utils/open_graph_protocol_helper.rb', line 107

def tag
  ::ActiveSupport::SafeBuffer.new
end