Sha256: 3311852228b237074b5eceb0593632f071829929aa0ac3f6de28d3f88fcdc4c2
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
require 'bitmapped/commands/base_command' module Bitmapped module Commands class MirrorCommand < BaseCommand def command_id "R" end def process_command(bitmap, input) Validators::ValidateBitmapInitialised.parse_and_validate(bitmap) bitmap = bitmap.pixels.collect { |row| row.reverse! } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitmapped-0.2.0 | lib/bitmapped/commands/mirror_command.rb |