class Bitmapped::Commands::MirrorCommand
Public Instance Methods
command_id()
click to toggle source
# File lib/bitmapped/commands/mirror_command.rb, line 7 def command_id "R" end
process_command(bitmap, input)
click to toggle source
# File lib/bitmapped/commands/mirror_command.rb, line 11 def process_command(bitmap, input) Validators::ValidateBitmapInitialised.parse_and_validate(bitmap) bitmap = bitmap.pixels.collect { |row| row.reverse! } end