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

Merge branch 'initial_examples' into 'master'

Initial addition of example files

Some simple content we can use for trainings. This is more structured than the random repository and random edits we (me) utilizes currently.

cc/ @JobV @patricio @balameb 

See merge request !1
parents 419cbe1a 39584a76
No related branches found
No related tags found
No related merge requests found
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