This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Image | |
| def initialize(image) | |
| @image = image | |
| end | |
| #Iterate through @image input and identify which indices have a "1". | |
| def identify | |
| one_index = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Image | |
| def initialize(image) | |
| @image = image | |
| end | |
| def output_image | |
| @image.each { |row| puts row.join } | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Image | |
| def initialize(image) | |
| @image = image | |
| end | |
| def output_image | |
| @image.each { |row| puts row.join } | |
| #puts blur(row_index, col_index) | |
| #transform.each { |row_index, col_index| blur(row_index, col_index) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Card | |
| attr_accessor :rank, :suit | |
| def initialize(rank, suit) | |
| @rank = rank | |
| @suit = suit | |
| end | |
| def output_card | |
| puts "#{self.rank} of #{self.suit}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Card | |
| attr_accessor :rank, :suit | |
| def initialize(rank, suit) | |
| @rank = rank | |
| @suit = suit | |
| end | |
| def output_card | |
| puts "#{self.rank} of #{self.suit}" |
NewerOlder