Sha256: e13330fbcb8165e7b75a2f1f78985738b6363270f0d9a6347a0f850fdfc30c6d

Contents?: true

Size: 652 Bytes

Versions: 39

Compression:

Stored size: 652 Bytes

Contents

module Rabbit
  module Renderer
    module Print
      extend Utils

      A4_WIDTH = 596
      A4_HEIGHT = 842

      class << self
        @initialized = false
        def init
          unless @initialized
            @initialized = true
            dir = ::File.join("rabbit", "renderer", "print")
            require_files_under_directory_in_load_path(dir)
          end
        end

        def new(*args, &block)
          init
          corresponding_class_under_module(self).new(*args, &block)
        end

        def printable?
          init
          not corresponding_class_under_module(self).nil?
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
rabbit-2.2.1 lib/rabbit/renderer/print.rb
rabbit-2.2.0 lib/rabbit/renderer/print.rb
rabbit-2.1.9 lib/rabbit/renderer/print.rb
rabbit-2.1.8 lib/rabbit/renderer/print.rb
rabbit-2.1.7 lib/rabbit/renderer/print.rb
rabbit-2.1.6 lib/rabbit/renderer/print.rb
rabbit-2.1.5 lib/rabbit/renderer/print.rb
rabbit-2.1.4 lib/rabbit/renderer/print.rb
rabbit-2.1.3 lib/rabbit/renderer/print.rb
rabbit-2.1.2 lib/rabbit/renderer/print.rb
rabbit-2.1.1 lib/rabbit/renderer/print.rb
rabbit-2.1.0 lib/rabbit/renderer/print.rb
rabbit-2.0.9 lib/rabbit/renderer/print.rb
rabbit-2.0.8 lib/rabbit/renderer/print.rb
rabbit-2.0.7 lib/rabbit/renderer/print.rb
rabbit-2.0.6 lib/rabbit/renderer/print.rb
rabbit-2.0.5 lib/rabbit/renderer/print.rb
rabbit-2.0.4 lib/rabbit/renderer/print.rb
rabbit-2.0.3 lib/rabbit/renderer/print.rb
rabbit-2.0.2 lib/rabbit/renderer/print.rb