Created
February 28, 2012 04:12
-
-
Save patrickgombert/1929370 to your computer and use it in GitHub Desktop.
get employee name example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_employee(id) | |
return db_employee_find(id) | |
end | |
def get_name(object) | |
return object.get_name | |
end | |
# To get an employee name with an id of 1 | |
get_name(get_employee(1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment