diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..f3e1405 --- /dev/null +++ b/Gemfile.lock @@ -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 diff --git a/README.md b/README.md index f06faab..050307d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/if_else_end.rb b/lib/if_else_end.rb index 8a7c9d9..ccdfd11 100644 --- a/lib/if_else_end.rb +++ b/lib/if_else_end.rb @@ -1 +1,8 @@ -# Write your solution here \ No newline at end of file +current_time = Time.now +current_time = current_time.to_i + +if current_time.even? + puts "Even!" +else + puts "Odd!" +end \ No newline at end of file