Skip to content

Instantly share code, notes, and snippets.

@jefflab
Created December 29, 2011 16:22
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 jefflab/1534813 to your computer and use it in GitHub Desktop.
Save jefflab/1534813 to your computer and use it in GitHub Desktop.
# usage:
#
# ruby main.rb
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))
require 'stock'
stock = Stock.new
puts "stock.price = #{stock.price}"
class Stock
def price
return 5.00
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment