class OpenGraphElement
Attributes
src[R]
Public Class Methods
new(obj, check, logger)
click to toggle source
Calls superclass method
HTMLProofer::Element::new
# File lib/html-proofer/check/opengraph.rb, line 6 def initialize(obj, check, logger) super(obj, check, logger) # Fake up src from the content attribute instance_variable_set('@src', @content) @src.insert 0, 'http:' if %r{^//}.match?(@src) end