Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Example for proving that Sublime Text 2 is running through RVM ruby and not the system default ruby. Goes with:
class Factorial
attr_reader :computed
def initialize(number)
@computed = solve(number)
def solve(number)
number > 1 ? number * solve(number-1) : 1
puts "5! = #{}"
puts "And your ruby version is #{RUBY_VERSION}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment