Skip to content

Commit

Permalink
Tone down humor. :P
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymcgavren committed May 16, 2016
1 parent 632a681 commit 500d174
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions ruby_oscon_2016/04_standard_library/02_yaml/02a_dump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

# Create a class with attributes of your choosing.
# Example:
class LoveInterest
attr_accessor :name, :hobby
class Song
attr_accessor :title, :artist
end

# Create an instance of your class and assign
# values to your attributes. Example:
my_ex = LoveInterest.new
my_ex.hobby = "drinking"
my_ex.name = "REDACTED"
song = Song.new
song.title = "I Am the Highway"
song.artist = "Audioslave"

# Finally, pass your instance to the YAML.dump
# method, and print the result with "puts".
Expand Down
12 changes: 6 additions & 6 deletions ruby_oscon_2016/04_standard_library/02_yaml/02b_dump_solution.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require "yaml"

class LoveInterest
attr_accessor :name, :hobby
class Song
attr_accessor :title, :artist
end

my_ex = LoveInterest.new
my_ex.hobby = "drinking"
my_ex.name = "REDACTED"
song = Song.new
song.title = "I Am the Highway"
song.artist = "Audioslave"

puts YAML.dump(my_ex)
puts YAML.dump(song)

0 comments on commit 500d174

Please sign in to comment.