Sha256: 2006c60ce0617c11fdf2cc2bbc87033a0590199ad32b41848a1e555100008641

Contents?: true

Size: 487 Bytes

Versions: 4

Compression:

Stored size: 487 Bytes

Contents

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
        fail NotImplementedError
      end

      private

      def node
        description.node
      end

      def text
        description.text
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
link_thumbnailer-3.0.3 lib/link_thumbnailer/graders/base.rb
link_thumbnailer-3.0.2 lib/link_thumbnailer/graders/base.rb
link_thumbnailer-3.0.1 lib/link_thumbnailer/graders/base.rb
link_thumbnailer-3.0.0 lib/link_thumbnailer/graders/base.rb