Convenience wrapper around parse! that swallows the esceptions and returns nil instead.
Parameters:
A HTML document that contains an OpenGraph object.
The source from where the given document was fetched.
Returns:
The base object from which you can obtain the root objects.
See Also:
68 69 70 71
# File 'lib/open_graph_reader.rb', line 68 def self.parse html, origin = nil parse! html, origin rescue NoOpenGraphDataError, InvalidObjectError end