Sha256: 7a18539fe58917bc0593dd671ffb571f73821e6460e6ffac5cc1164c50481c24
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
require 'bitmapped/commands/base_command' module Bitmapped module Commands class ClearCommand < BaseCommand def command_id "C" end def process_command(bitmap, input) Validators::ValidateBitmapInitialised.parse_and_validate(bitmap) bitmap.pixels = Array.new(bitmap.rows) { Array.new(bitmap.columns) { "O" } } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitmapped-0.2.0 | lib/bitmapped/commands/clear_command.rb |