Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Done #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Done #30

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
Empty file added binding.pry
Empty file.
1 change: 1 addition & 0 deletions lib/pry_debugging.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
def plus_two(num)
num + 2
num
binding.pry
end
3 changes: 3 additions & 0 deletions lib/pry_is_awesome.rb → rubylib/pry_is_awesome.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ def prying_into_the_method
this_variable_hasnt_been_interpreted_yet = "The program froze before it could read me!"
puts this_variable_hasnt_been_interpreted_yet
end
[1]pry(main)>
ruby lib/pry_is_awesome

prying_into_the_method

1 change: 1 addition & 0 deletions spec/pry_debugging_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
it "takes in a number as an argument and returns the sum of that number and 2" do
expect(plus_two(3)).to eq(5)
end
[1] pry()=>

end