Skip to content

Instantly share code, notes, and snippets.

@dogweather
Created October 23, 2012 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogweather/3936252 to your computer and use it in GitHub Desktop.
Save dogweather/3936252 to your computer and use it in GitHub Desktop.
Trying to use pry to learn about a gem/module
[7] pry(main)> include Magick
=> Object
[8] pry(main)> ls
self.methods: include private public to_s
locals: _ _dir_ _ex_ _file_ _in_ _out_ _pry_
[9] pry(main)> ls -g
global variables: $! $" $$ $& $' $* $+ $, $-0 $-a $-d $-F $-i $-I $-K $-l $-p $-v $-W $-w $. $/ $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $: $; $< $= $> $? $@ $\ $_ $` $CODERAY_DEBUG $DEBUG $DEBUG_BEFORE $FILENAME $fileutils_rb_have_lchmod $fileutils_rb_have_lchown $KCODE $LOAD_PATH $LOADED_FEATURES $PROGRAM_NAME $SAFE $stderr $stdin $stdout $VERBOSE $~
[10] pry(main)> Image
=> Magick::Image
[11] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment