Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialGus Feliciano
Front End Web Development Techdegree Student 5,089 Points*[SOLVED]* Error Message unexpected end of input
I keep getting this error message when running my code and cannot figure out what it could be.
Any help would be great, thanks!!
class Name
def initialize(title, first_name, middle_name, last_name)
@title = title
@first_name = first_name
@middle_name = middle_name
@last_name = last_name
end
def title
@title
end
def first_name
@first_name
end
def middle_name
@middle_name
end
def last_name
@last_name
end
end
name = Name.new ("Mr.", "Gus", " ", "Feliciano")
puts name.title +
name.first_name +
name.middle_name +
name.last_name
Moderator Edit: Marked as "Solved"
1 Answer
Gus Feliciano
Front End Web Development Techdegree Student 5,089 PointsNever mind! Figured out it was just the space between new(
name = Name.new("Mr.", "Gus", " ", "Feliciano")