Skip to content

Instantly share code, notes, and snippets.

@ConradIrwin
Created August 27, 2011 09:05
Show Gist options
  • Select an option

  • Save ConradIrwin/1175171 to your computer and use it in GitHub Desktop.

Select an option

Save ConradIrwin/1175171 to your computer and use it in GitHub Desktop.
(in /0/ruby/pry)
Pry::InputCompleter
- should not crash if there's a Module that has a symbolic name.
Ruby Version 1.8.7
Testing Pry 0.9.4pre1
With method_source version 0.6.0
--
Pry
Pry.binding_for
- Should not error when object doesn't have a valid == method
open a Pry session on an object
rep
- should not leak pry constants into Object namespace
- should set an ivar on an object
- should make self evaluate to the receiver of the rep session
- should work with multi-line input
- should define a nested class under Hello and not on top-level or Pry
- should suppress output if input ends in a ";" and is an Exception object (single line)
- should suppress output if input ends in a ";" (single line)
- should suppress output if input ends in a ";" (multi-line)
- should be able to evaluate exceptions normally
- should notice when exceptions are raised
- should not try to catch intended exceptions
repl
basic functionality
- should set an ivar on an object and exit the repl
history arrays
- sets _ to the last result
- sets out to an array with the result
- sets inp to an array with the entered lines
- uses 100 as the size of inp and out
- can change the size of the history arrays
- store exceptions
test loading rc files
- should run the rc file only once
- should not run the rc file at all if Pry.config.should_load_rc is false
- should not load the rc file if #repl method invoked
nesting
- should nest properly
defining methods
- should define a method on the singleton class of an object when performing "def meth;end" inside the object
- should define an instance method on the module when performing "def meth;end" inside the module
- should define an instance method on the class when performing "def meth;end" inside the class
- should define a method on the class of an object when performing "def meth;end" inside an immediate value or Numeric
commands
- should run a command with no parameter
- should run a command with one parameter
Object#pry
- should start a pry session on the receiver (first form)
- should start a pry session on the receiver (second form)
- should error if more than one argument is passed to Object#pry
Pry.binding_for
- should return TOPLEVEL_BINDING if parameter self is main
test Pry defaults
input
- should set the input default, and the default should be overridable
- should pass in the prompt if readline arity is 1
- should not pass in the prompt if the arity is 0
- should not pass in the prompt if the arity is -1
- should set the output default, and the default should be overridable
commands
- should interpolate ruby code into commands
- should not choke on complex string interpolation when checking if ruby code is a command
- should NOT interpolate ruby code into commands if :interpolate => false
- should NOT try to interpolate pure ruby code (no commands) #{aggy}
#{$test_interpolation}
- should create a command with a space in its name
- should create a command with a space in its name and pass an argument
- should create a regex command and be able to invoke it
- should create a regex command and pass captures into the args list before regular arguments
- should create a regex command and interpolate the captures
- should create a regex command and arg_string should be interpolated
- if a regex capture is missing it should be nil
- should create a command in a nested context and that command should be accessible from the parent
- should define a command that keeps its return value
- should define a command that does NOT keep its return value
- should set the commands default, and the default should be overridable
- should inherit "help" command from Pry::CommandBase
- should inherit commands from Pry::Commands
- should alias a command with another command
- should change description of a command using desc
- should run a command from within a command
- should run a regex command from within a command
- should run a command from within a command with arguments
- should enable an inherited method to access opts and output and target, due to instance_exec
- should import commands from another command object
- should delete some inherited commands when using delete method
- should override some inherited commands
- should set the print default, and the default should be overridable
pry return values
- should return the target object
- should return the parameter given to exit-all
- should return the parameter (multi word string) given to exit-all
- should return the parameter (function call) given to exit-all
- should return the parameter (self) given to exit-all
prompts
- should set the prompt default, and the default should be overridable (single prompt)
- should set the prompt default, and the default should be overridable (multi prompt)
storing and restoring the prompt
- should have a prompt stack
- should restore overridden prompts when returning from file-mode
- #pop_prompt should return the popped prompt
- should not pop the last prompt
#prompt= should replace the current prompt with the new prompt
- when only one prompt on the stack
- when several prompts on the stack
- should set the hooks default, and the default should be overridable
Pry
output failsafe
- should catch serialization exceptions
- should display serialization exceptions
- should catch errors serializing exceptions
DEFAULT_PRINT
- should output the right thing
- should not be phased by un-inspectable things
- should warn you about un-inspectable things
- should warn you when you have badly behaved objects
Pry::Helpers::CommandHelpers
get_method_object
- should look up instance methods if no methods available and no options provided
- should look up methods if no instance methods available and no options provided
- should look up instance methods first even if methods available and no options provided
- should look up instance methods if "instance-methods" option provided
- should look up methods if :methods option provided
- should look up instance methods using the Class#method syntax
- should look up methods using the object.method syntax
- should NOT look up instance methods using the Class#method syntax if no instance methods defined
- should NOT look up methods using the object.method syntax if no methods defined
- should look up methods using klass.new.method syntax
- should look up instance methods using klass.meth#method syntax
Pry::Commands
help
- should display help for a specific command
- should display help for a regex command with a "listing"
- should display help for a command with a spaces in its name
- should display help for all commands with a description
Pry::CommandSet
- should call the block used for the command when it is called
- should pass arguments of the command to the block
- should use the first argument as self
- should raise an error when calling an undefined command
- should be able to remove its own commands
- should be able to import some commands from other sets
- should be able to import a whole set
- should be able to import sets at creation
- should set the descriptions of commands
- should be able to alias method
- should be able to change the descritpions of methods
- should return nil for commands by default
- should be able to keep return values
- should be able to have its own helpers
- should not recreate a new helper module when helpers is called
- should import helpers from imported sets
- should import helpers even if only some commands are imported
- should provide a :listing for a command that defaults to its name
- should provide a :listing for a command that differs from its name
- should provide a 'help' command
- should sort the output of the 'help' command
Pry::CommandProcessor
- should accurately determine if a command is valid
- should correctly match a simple string command
- should correctly match a simple string command with parameters
- should not match when the relevant command does not exist
- should correctly match a regex command
- should correctly match a regex command and extract the capture groups
- should correctly match a string command with spaces in its name
- should correctly match a string command with spaces in its name with parameters
- should correctly match a command preceded by the command_prefix if one is defined
- should not match a command not preceded by the command_prefix if one is defined
- should match a command preceded by the command_prefix when :use_prefix => false
- should match a command not preceded by the command_prefix when :use_prefix => false
- should correctly match a regex command with spaces in its name
- should correctly match a complex regex command
- should not interpolate commands that have :interpolate => false (interpolate_string should *not* be called)
- should only execute the contents of an interpolation once
Pry::HistoryArray
- should have a maximum size specifed at creation time
- should be able to be added objects to
- should be able to access single elements
- should be able to access negative indices
- should be able to access ranges
- should be able to access ranges starting from a negative index
- should be able to access ranges ending at a negative index
- should be able to access ranges using only negative indices
- should be able to use range where end is excluded
- should be able to access slices using a size
- should remove older entries
Pry
.load_history
- should read the contents of the file
.save_history
- should include a trailing newline
- should not change anything if history is not changed
- should append new lines to the file
- should not clobber lines written by other Pry's in the meantime
- should not delete lines from the file if this session's history was cleared
- should save new lines that are added after the history was cleared
- should only append new lines the second time it is saved
Pry::DefaultCommands::Context
exit-all
- should break out of the repl loop of Pry instance (returning target of session)
- should break out of the repl loop of Pry instance wth a user specified value
- should break of the repl loop even if multiple bindings still on stack
- binding_stack should be empty after breaking out of the repl loop
exit
- should pop a binding with exit
- should break out of the repl loop of Pry instance when binding_stack has only one binding with exit
- should break out of the repl loop of Pry instance when binding_stack has only one binding with exit, and return user-given value
jump-to
- should jump to the proper binding index in the stack
- should print error when trying to jump to a non-existent binding index
- should print error when trying to jump to the same binding index
exit-program
- should raise SystemExit
cd
- should cd into simple input
- should break out of session with cd ..
- should break out of the repl loop of Pry instance when binding_stack has only one binding with cd ..
- should break out to outer-most session with cd /
- should start a session on TOPLEVEL_BINDING with cd ::
- should cd into complex input (with spaces)
Pry::DefaultCommands::Input
amend-line-N
- should correctly amend the last line of input when no line number specified
- should correctly amend the specified line of input when line number given
- should correctly amend the specified line of input when line number given, 0 should behave as 1
- should correctly amend the specified line of input when line number given (negative number)
- should correctly amend the specified range of lines of input when range of negative numbers given (negative number)
- should correctly amend the specified line with string interpolated text
- should display error if nothing to amend
- should correctly amend the specified range of lines
- should correctly delete a specific line using the ! for content
- should correctly delete a range of lines using the ! for content
- should correctly delete the previous line using the ! for content
- should correctly amend the specified range of lines, using negative numbers in range
- should correctly insert a new line of input before a specified line using the > syntax
- should correctly insert a new line of input before a specified line using the > syntax (should ignore second value of range)
show-input
- should correctly show the current lines in the input buffer
!
- should correctly clear the input buffer
play
- should play a string of code (with no args)
- should play an interpolated string of code (with no args)
- should play a method with the -m switch (a single line) [FAILED]
- should play a method with the -m switch (multiple line) [FAILED]
hist
- should display the correct history
- should replay history correctly (single item)
- should replay a range of history correctly (range of items)
- should grep for correct lines in history
- should return last N lines in history with --tail switch
- should return first N lines in history with --head switch
- should show lines between lines A and B with the --show switch
- should not contain duplicated lines
- should not contain duplicated lines
Pry::DefaultCommands::Documentation
show-doc
- should output a method's documentation [FAILED]
- should output a method's documentation if inside method without needing to use method name
Pry::DefaultCommands::Introspection
show-method
- should output a method's source [FAILED]
- should output a method's source with line numbers [FAILED]
- should output a method's source with line numbers starting at 1 [FAILED]
- should output a method's source if inside method without needing to use method name
- should output a method's source if inside method without needing to use method name, and using the -l switch [FAILED]
show-command
- should show source for an ordinary command
- should show source for a command with spaces in its name
- should show source for a command by listing name
Pry::DefaultCommands::Gems
gem-list
- should not raise when invoked
Bacon::Error: "Cannot locate this method: test_method. Try `gem install pry-doc` to get access to Ruby Core documentation.\n".=~(/:test_method_content/) failed
./test/test_default_commands/test_input.rb:178:in `(root)': play - should play a method with the -m switch (a single line)
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_input.rb:168:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_input.rb:152:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_input.rb:3:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
./test/test_default_commands/test_input.rb:115:in `(root)'
org/jruby/RubyArray.java:1603:in `each'
org/jruby/RubyKernel.java:1063:in `load'
Bacon::Error: "Cannot locate this method: test_method. Try `gem install pry-doc` to get access to Ruby Core documentation.\n".=~(/103\n.*30/) failed
./test/test_default_commands/test_input.rb:193:in `(root)': play - should play a method with the -m switch (multiple line)
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_input.rb:182:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_input.rb:152:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_input.rb:3:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
./test/test_default_commands/test_input.rb:115:in `(root)'
org/jruby/RubyArray.java:1603:in `each'
org/jruby/RubyKernel.java:1063:in `load'
Bacon::Error: "Cannot locate this method: sample_method. Try `gem install pry-doc` to get access to Ruby Core documentation.\n".=~(/sample doc/) failed
./test/test_default_commands/test_documentation.rb:11:in `(root)': show-doc - should output a method's documentation
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_documentation.rb:5:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_documentation.rb:4:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_documentation.rb:3:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
./test/test_default_commands/test_documentation.rb:115:in `(root)'
org/jruby/RubyArray.java:1603:in `each'
org/jruby/RubyKernel.java:1063:in `load'
Bacon::Error: "Cannot locate this method: sample_method. Try `gem install pry-doc` to get access to Ruby Core documentation.\n".=~(/def sample/) failed
./test/test_default_commands/test_introspection.rb:11:in `(root)': show-method - should output a method's source
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:5:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:4:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:3:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
./test/test_default_commands/test_introspection.rb:115:in `(root)'
org/jruby/RubyArray.java:1603:in `each'
org/jruby/RubyKernel.java:1063:in `load'
Bacon::Error: "Cannot locate this method: sample_method. Try `gem install pry-doc` to get access to Ruby Core documentation.\n".=~(/\d+: def sample/) failed
./test/test_default_commands/test_introspection.rb:20:in `(root)': show-method - should output a method's source with line numbers
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:14:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:4:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:3:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
./test/test_default_commands/test_introspection.rb:115:in `(root)'
org/jruby/RubyArray.java:1603:in `each'
org/jruby/RubyKernel.java:1063:in `load'
Bacon::Error: "Cannot locate this method: sample_method. Try `gem install pry-doc` to get access to Ruby Core documentation.\n".=~(/1: def sample/) failed
./test/test_default_commands/test_introspection.rb:29:in `(root)': show-method - should output a method's source with line numbers starting at 1
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:23:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:4:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:3:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
./test/test_default_commands/test_introspection.rb:115:in `(root)'
org/jruby/RubyArray.java:1603:in `each'
org/jruby/RubyKernel.java:1063:in `load'
Bacon::Error: "\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: ./test/test_default_commands/test_introspection.rb @ line 53 in Object#sample:\n\n 48: $str_output = StringIO.new\n 49: \n 50: o = Object.new\n 51: def o.sample\n 52: redirect_pry_io(InputTester.new(\"show-method -l\", \"exit-all\"), $str_output) do\n => 53: binding.pry\n 54: end\n 55: end\n 56: o.sample\n 57: \n 58: $str_output.string.should =~ /\\d+: def o.sample/\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\n\nFrom: /0/ruby/pry/lib/pry/default_commands/introspection.rb @ line 38 in Object#sample:\n\n 33: if (meth = get_method_object(meth_name, target, opts.to_hash(true))).nil?\n 34: output.puts \"Invalid method name: \#{meth_name}. Type `show-method --help` for help\"\n 35: next\n 36: end\n 37: \n => 38: code, code_type = code_and_code_type_for(meth)\n 39: next if !code\n 40: \n 41: output.puts make_header(meth, code_type, code)\n 42: if Pry.color\n 43: code = CodeRay.scan(code, code_type).term\nLoadError: load error: builtin/javasupport -- java.lang.StackOverflowError: null\nfrom /home/conrad/.rvm/gems/jruby-1.6.4/gems/method_source-0.6.0/lib/method_source/source_location.rb:24:in `source_location'\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\nCannot locate this method: sample. Try `gem install pry-doc` to get access to Ruby Core documentation.\n".=~(/\d+: def o.sample/) failed
./test/test_default_commands/test_introspection.rb:58:in `(root)': show-method - should output a method's source if inside method without needing to use method name, and using the -l switch
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:47:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:4:in `(root)'
org/jruby/RubyKernel.java:2061:in `instance_eval'
./test/test_default_commands/test_introspection.rb:3:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
./test/test_default_commands/test_introspection.rb:115:in `(root)'
org/jruby/RubyArray.java:1603:in `each'
org/jruby/RubyKernel.java:1063:in `load'
215 specifications (339 requirements), 7 failures, 0 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment