Sha256: c7e3dc7d4934e96e6b1c42a50703a1ecd269f4922559c7c610cf0068d450ad90
Contents?: true
Size: 604 Bytes
Versions: 7
Compression:
Stored size: 604 Bytes
Contents
require 'delegate' module LinkThumbnailer module Graders class Base < ::SimpleDelegator attr_reader :config, :description, :options def initialize(description, options = {}) @config = ::LinkThumbnailer.page.config @description = description @options = options super(config) end def call fail NotImplementedError end def weight options.fetch(:weigth, 1) end private def node description.node end def text description.text end end end end
Version data entries
7 entries across 7 versions & 1 rubygems