Skip to content
Open

Done #17

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
GEM
remote: https://rubygems.org/
specs:
coderay (1.1.3)
diff-lcs (1.4.4)
method_source (1.0.0)
pry (0.13.1)
coderay (~> 1.1)
method_source (~> 1.0)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-core (3.10.0)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.0)

PLATFORMS
ruby

DEPENDENCIES
pry
rspec

BUNDLED WITH
2.0.1
15 changes: 14 additions & 1 deletion lib/if_else_end.rb
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# Write your solution here
# Write your solution here
current_time = Time.now
if (current_time.to_i).even?
puts "Even!"
else
puts "Odd!"
end

#current_time = Time.now
#if current_time.to_i % 2 == 0
# puts "Even!"
#else
# puts "Odd!"
#end