require 'delegate' module LinkThumbnailer module Graders class Base < ::SimpleDelegator attr_reader :config, :description def initialize(description) @config = ::LinkThumbnailer.page.config @description = description super(config) end def call(current_score) raise 'must implement' end private def node description.node end def text node.text end end end end