Skip to content

Commit

Permalink
refactored timer exercise
Browse files Browse the repository at this point in the history
  • Loading branch information
strychemi committed Aug 30, 2015
1 parent fc1a670 commit cd9d111
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions 09_timer/timer.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
class Timer
def initialize
@seconds = 0
end
attr_accessor :seconds

def seconds
def initialize
@seconds = 0
end

def seconds=(time)
@seconds = time
end

def time_string
hr = (@seconds / 3600).to_s
min = ((@seconds / 60) % 60).to_s
Expand Down
Empty file.

0 comments on commit cd9d111

Please sign in to comment.