Skip to content
Snippets Groups Projects
Commit 39584a76 authored by Drew Blessing's avatar Drew Blessing
Browse files

Initial addition of example files

parent 419cbe1a
No related branches found
No related tags found
1 merge request!1Initial addition of example files
bugs.rb 0 → 100644
class Person
attr_reader :name, :email
def initialize(name, email)
@name = name
@email = email
end
## TODO: Fix the misspelled method name below.
def frist_name
'Jane'
end
# Duplicate attr_readers.
# TODO: Remove these comments and the 2 methods below.
def name
@name
end
def email
@email
end
end
class HelloWorld
def initialize
output_lines
end
def output_lines
puts 'Line1'
puts 'Line2'
puts 'Line3'
end
end
class HelloWorld
def initialize(name)
@name = name.capitalize
end
def say_hi
puts "Hello #{@name}!"
end
# TODO: Remove this comment and the method below.
def say_bye
puts "Good-bye #{@name}!"
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment