Sha256: ba62e8d4c725b57d005c19a550947ef32ff628cee1a4b3fb9f1d4905201f13f5

Contents?: true

Size: 485 Bytes

Versions: 10

Compression:

Stored size: 485 Bytes

Contents

# frozen_string_literal: true

require_relative '../checker'

module Epuber
  class Checker
    class BookspecChecker < Checker
      # @return [Epuber::Book]
      #
      attr_reader :book

      # @param [Epuber::Book] book
      # @param [CompilationContext] compilation_context
      #
      # @return nil
      #
      def call(book, compilation_context)
        @book = book

        @block.call(self, book, compilation_context)

        @book = nil
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
epuber-0.11.1 lib/epuber/checker/bookspec_checker.rb
epuber-0.11.0 lib/epuber/checker/bookspec_checker.rb
epuber-0.10.3 lib/epuber/checker/bookspec_checker.rb
epuber-0.10.2 lib/epuber/checker/bookspec_checker.rb
epuber-0.10.1 lib/epuber/checker/bookspec_checker.rb
epuber-0.9.3 lib/epuber/checker/bookspec_checker.rb
epuber-0.9.2 lib/epuber/checker/bookspec_checker.rb
epuber-0.9.1 lib/epuber/checker/bookspec_checker.rb
epuber-0.9.0 lib/epuber/checker/bookspec_checker.rb
epuber-0.8.0 lib/epuber/checker/bookspec_checker.rb