Skip to content

Instantly share code, notes, and snippets.

@mkoby
Created June 19, 2012 18:40
Show Gist options
  • Save mkoby/2955809 to your computer and use it in GitHub Desktop.
Save mkoby/2955809 to your computer and use it in GitHub Desktop.
Intro to Ruby - 15 - Separating Programs into Multiple Files
require ‘./employee.rb’
e = Employee.new
e.say_hello(“Michael”)
class Employee
def say_hello(name)
puts “Hello, #{name}”
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment