Skip to content
Open

Done #13

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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Programming as Conversation 2: Selection with if...end and Statement Modifiers
Learning# Programming as Conversation 2: Selection with if...end and Statement Modifiers

## Learning Goals

Expand Down
9 changes: 8 additions & 1 deletion lib/if_else_end.rb
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# Write your solution here
current_time = Time.now
current_time = current_time.to_i

if current_time.even?
puts "Even!"
else
puts "Odd!"
end