Sha256: f6408c392651308228a1b67f29d443e115297b98bb7f8d05a31508d887aed6e3
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
# frozen_string_literal: true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
link_thumbnailer-3.4.0 | lib/link_thumbnailer/graders/base.rb |
link_thumbnailer-3.3.2 | lib/link_thumbnailer/graders/base.rb |