Class: Person
- Inherits:
-
ActiveRecordShared
- Object
- ActiveRecord::Base
- ActiveRecordShared
- Person
- Defined in:
- app/models/person.rb
Overview
don’t know exactly
Instance Method Summary collapse
-
#full_name ⇒ Object
Returns string containing first and last name.
-
#to_s ⇒ Object
Returns full_name.
Instance Method Details
#full_name ⇒ Object
Returns string containing first and last name
19 20 21 |
# File 'app/models/person.rb', line 19 def full_name "#{first_name} #{last_name}" end |
#to_s ⇒ Object
Returns full_name
24 25 26 |
# File 'app/models/person.rb', line 24 def to_s full_name end |