Sha256: 2bee44e8e3eff7c5da651ec1f6b78198e1811727f354df420a5cc9ce4861d57a

Contents?: true

Size: 403 Bytes

Versions: 8

Compression:

Stored size: 403 Bytes

Contents

require_relative 'renderer'

module WhirledPeas
  module Graphics
    class MockScreen
      def initialize(width:, height:)
        @width = width
        @height = height
      end

      def paint(template)
        Renderer.new(template, width, height).paint { }
      end

      def refresh
      end

      def finalize
      end

      private

      attr_reader :width, :height
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
whirled_peas-0.11.0 lib/whirled_peas/graphics/mock_screen.rb
whirled_peas-0.10.0 lib/whirled_peas/graphics/mock_screen.rb
whirled_peas-0.9.1 lib/whirled_peas/graphics/mock_screen.rb
whirled_peas-0.9.0 lib/whirled_peas/graphics/mock_screen.rb
whirled_peas-0.8.0 lib/whirled_peas/graphics/mock_screen.rb
whirled_peas-0.7.1 lib/whirled_peas/graphics/mock_screen.rb
whirled_peas-0.7.0 lib/whirled_peas/graphics/mock_screen.rb
whirled_peas-0.6.0 lib/whirled_peas/graphics/mock_screen.rb