Skip to content

Instantly share code, notes, and snippets.

@lancelakey
Created October 3, 2012 22:30
Show Gist options
  • Select an option

  • Save lancelakey/3830308 to your computer and use it in GitHub Desktop.

Select an option

Save lancelakey/3830308 to your computer and use it in GitHub Desktop.
Ruby put ruby version and loadpath
#!/usr/bin/env ruby
puts RUBY_VERSION
# puts the ruby load path
puts $:
Object.constants.sort.each {|c| cv=Object.const_get(c); print c, "=", cv, "\n" unless Module === cv}
@lancelakey

Copy link
Copy Markdown
Author

!/usr/bin/env ruby

require 'openssl'
require 'zlib'
require 'readline'
require 'yaml'

puts "Success"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment