Mulan II | 0 Beauty and the Beast - The Enchanted Christmas | 0 Police Academy 5 - Assignment Miami Beach | 0 InSight | 0 Police Academy 4 - Citizens on Patrol | 0 Troll 2 | 0 That Was Then... This Is Now | 0 Fred: The Movie | 0 S. Darko: A Donnie Darko Tale | 0 The Fox and the Hound 2 | 0
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 | |
| def initialize(rank, suit) | |
| @suit = suit | |
| @rank = rank | |
| end | |
| def rank | |
| @rank | |
| 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 Whiteboard | |
| attr_accessor :contents | |
| def initialize(contents = []) | |
| @contents = contents | |
| end | |
| #instance method to erase whiteboard | |
| def erase_whiteboard | |
| @contents = [] |
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
| require 'pry' | |
| class Circle | |
| def initialize(radius) | |
| @radius = radius | |
| end | |
| def diameter | |
| 2 * @radius |
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 Animal | |
| def initialize(name) | |
| @name = name | |
| end | |
| def emote | |
| "#{@name} " | |
| end |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 6 columns, instead of 3 in line 1.
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
| last_name,first_name,base_salary,percentage,bonus,limit | |
| Smith,Johnny,80000 | |
| McMahon,Jimmy,85000 | |
| Lob,Bob,50000,0.5 | |
| Bobby,Ricky,40000,1.5 | |
| Krabappel,Edna,87000 | |
| Groundskeeper,Willie,75000,0,5000,60000 | |
| Wiggum,Clancy,80000,0,10000,80000 | |
| Burns,Charles,500000,0,1000,0 |
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
| require 'pry' | |
| require 'csv' | |
| class EmployeeReader | |
| attr_reader :employees | |
| def initialize(file_name) | |
| get_employees(file_name) | |
| 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
| require 'pry' | |
| class PigLatinTranslation | |
| def initialize(phrase) | |
| @phrase = phrase.downcase | |
| end | |
| #provide the pig latin translation | |
| def translate |
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
| require 'pry' | |
| class PigLatin | |
| def initialize(phrase) | |
| @phrase = phrase.downcase | |
| end | |
| #provide the pig latin translation | |
| def translate |
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
| title | rating | |
| ------------------------------------------------+-------- | |
| Mulan II | 0 | |
| Beauty and the Beast - The Enchanted Christmas | 0 | |
| Police Academy 5 - Assignment Miami Beach | 0 | |
| InSight | 0 | |
| Police Academy 4 - Citizens on Patrol | 0 | |
| Troll 2 | 0 | |
| That Was Then... This Is Now | 0 | |
| Fred: The Movie | 0 |